diff options
author | kleintux | 2022-06-22 21:46:34 +0200 |
---|---|---|
committer | kleintux | 2022-06-22 21:46:34 +0200 |
commit | 6d825e9b3c73ae73efa681b3112a9187f94cd0f8 (patch) | |
tree | 893e7bcddc0396db13a8ef7e4b1966de7d2c28e0 /PKGBUILD | |
download | aur-6d825e9b3c73ae73efa681b3112a9187f94cd0f8.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8e1f7e188ee8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch> + +_pkgname=anarch +pkgname="${_pkgname}-git" +pkgver=r814.8eadf20 +pkgrel=1 +pkgdesc='Anarch, the suckless FPS game' +arch=('x86_64' 'aarch64') +url="https://codeberg.org/drummyfish/Anarch.git" +license=('CC0') +makedepends=('git') +depends=('sdl2') +source=("git+${url}") +sha256sums=('SKIP') +conflicts=("${_pkgname}" "${_pkgname}-bin" ) + +pkgver() { + cd "${_pkgname^}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${_pkgname^}" + ./make.sh sdl +} + +package() { + cd "${_pkgname^}" + install -Dm755 ${_pkgname} "${pkgdir}/usr/bin/${_pkgname}" + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname^}/LICENSE" +} |