summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6c007c2f99ae5f13fbc181380d31b9386f3e7ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Ysblokje <ysblokje at gmail dot com>
pkgname=('lib32-gamemode-git')
_pkgname=('gamemode')
pkgver=r456.01f49a2
pkgrel=1
pkgdesc="A daemon/lib combo for Linux that allows games to request a set of optimisations be temporarily applied to the host OS."
arch=('x86_64')
url="https://github.com/FeralInteractive/gamemode.git"
license=('BSD 3-Clause License (Revised)')
depends=('polkit' 'gamemode-git' 'lib32-glibc')
makedepends=('meson' 'ninja' 'pkg-config' 'git')
provides=('lib32-gamemode')
conflicts=('lib32-gamemode')
source=("git+https://github.com/FeralInteractive/gamemode.git")
sha256sums=('SKIP')

#prepare() {
#    cd $_pkgname
#    patch --forward --strip=1 --input="${startdir}/temp_util_fix.patch"
#}
pkgver() {
    cd gamemode
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
  export CFLAGS=-m32
  export CXXFLAGS=-m32
  export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
  
  meson ${_pkgname} build  --prefix /usr \
    -Dwith-daemon=false -Dwith-examples=false -Dwith-systemd=false -Dwith-util=false --libdir lib32
  ninja -C build
}

package() {
  DESTDIR=$pkgdir ninja -C build install
  rm -rf $pkgdir/usr/include 
  install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" ${_pkgname}/LICENSE.txt
}