blob: 488ac41984cf6352c764cefbf7613d6f45eb1f79 (
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
|
# Maintainer: Ysblokje <ysblokje at gmail dot com>
pkgname=('gamemode-git')
_pkgname=('gamemode')
pkgver=r326.0074faf
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')
optdepends=('systemd')
makedepends=('meson' 'ninja' 'pkg-config' 'git')
provides=('gamemode')
conflicts=('gamemode')
source=("git+https://github.com/FeralInteractive/gamemode.git")
sha256sums=('SKIP')
pkgver() {
cd gamemode
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
meson ${_pkgname} build --prefix /usr -Dwith-systemd-user-unit-dir=/usr/lib/systemd/user -Dwith-pam-group=gamemode
ninja -C build
}
package() {
DESTDIR=$pkgdir ninja -C build install
install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" ${_pkgname}/LICENSE.txt
}
|