summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fdfec0002447fa4ca309e58423f09197ea0593f8 (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
40
41
# Maintainter: SlavMetal <7tc@protonmail.com>

pkgname=ascii-patrol-git
_pkgname=ascii-patrol
_pkgname2=asciipat
pkgver=r48.d1f9270
pkgrel=1
pkgdesc="Ascii Patrol is an ASCII game project which was mainly inspired by 'Moon Patrol'."
arch=('any')
url="https://github.com/msokalski/ascii-patrol"
license=('GPL')
depends=('pulseaudio')
makedepends=('git')
optdepends=('libxi: to fix problems with no keyboard input in a few GNOME terminals'
            'curl: for highscores table support')
provides=("${_pkgname2}")
conflicts=("${_pkgname}")
source=(git+https://github.com/msokalski/ascii-patrol.git)
md5sums=('SKIP')

prepare() {
	cd "$srcdir"/"$_pkgname"
	chmod +x build.sh
}

pkgver() {
	cd "$srcdir"/"$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir"/"$_pkgname"
	./build.sh
}

package() {
	cd "$srcdir"/"$_pkgname"
	mkdir -p "$pkgdir"/usr/bin
	install -Dm755 "$_pkgname2" "$pkgdir"/usr/bin
}