summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb7b8ff8369b702ba613ee12e0808ac021c2458a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pkgname="speedrun"
pkgver=0.1.0
pkgrel=1
arch=("any")
url="https://github.com/zeroxoneafour/speedrun"
pkgdesc="Run your games extra fast with speedrun"
license=("MIT")
optdepends=("mangohud: mangohud support" "gamemode: gamemoderun support" "nvidia-prime: prime-run support")
source=("$pkgname::git+https://github.com/zeroxoneafour/speedrun")
sha256sums=("SKIP")
install=".install"

pkgver() {
	cd $pkgname
	echo $(grep -Po "version=\d+\.\d+\.\d+" speedrun.sh | grep -Po "\d+\.\d+\.\d+")
}

package() {
	cd $pkgname
	install -D -m755 "speedrun.sh" "$pkgdir/usr/bin/speedrun"
	install -D -m755 "speedrun.conf" "$pkgdir/etc/speedrun.conf"
}