From 61e4b7475fd5b9e193162b8668f9e3dab9f2753e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=A5=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Sat, 24 Aug 2024 13:53:14 +0300 Subject: [PATCH] gamemode-lib32 1.8.1 --- gamemode-lib32/alr.sh | 50 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 gamemode-lib32/alr.sh diff --git a/gamemode-lib32/alr.sh b/gamemode-lib32/alr.sh new file mode 100644 index 0000000..66a1506 --- /dev/null +++ b/gamemode-lib32/alr.sh @@ -0,0 +1,50 @@ +name='gamemode-lib32' +version='1.8.1' +release='1' +desc='A daemon/lib combo that allows games to request a set of optimisations be temporarily applied to the host OS' +homepage='https://github.com/FeralInteractive/gamemode' +maintainer="Евгений Храмов " +architectures=('amd64') +license=('BSD-3-Clause') +provides=('gamemode') +conflicts=('gamemode' 'gamemode-bin' 'gamemode-git') + +deps=( + 'lib32-dbus' + 'lib32-glibc' + 'lib32-systemd' +) +deps_arch=( + 'lib32-dbus' + 'lib32-glibc' + 'lib32-systemd' + +) +build_deps=( + 'git' + 'meson' + 'appstream' +) + +sources=("git+https://github.com/FeralInteractive/gamemode.git#tag=v${version}") +checksums=('SKIP') + +build() { + cd ${srcdir} + export CC='gcc -m32' + export PKG_CONFIG_PATH=/usr/lib32/pkgconfig + meson gamemode build --libdir /usr/lib32 -Dwith-examples=false -Dwith-sd-bus-provider=no-daemon -Dwith-util=false + meson compile -C build +} + +check() { + meson test -C build +} + +package() { + DESTDIR="${pkgdir}" meson install -C build + rm -rf "${pkgdir}"/{etc,usr/include} + install -dm 755 "${pkgdir}"/usr/share/licenses + ln -s gamemode "${pkgdir}"/usr/share/licenses/lib32-gamemode +} +