summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e1f7e188ee86c43a732c76f2121794f77623c14 (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
# 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"
}