summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..8a9c97a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
+# Maintainter (AUR): SlavMetal <7tc@protonmail.com>
+
+# # I maintain this because:
+# Not in an official repo and I use it
+# AUR version builds from git or binary
+
+
+pkgname=ascii-patrol
+_exname=asciipat
+pkgver=1.7
+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=('libpulse')
+optdepends=('libxi: to fix problems with no keyboard input in a few GNOME terminals'
+ 'curl: for highscores table support')
+provides=("${_exname}")
+conflicts=("${pkgname}-git")
+source=($pkgname-$pkgver.tar.gz::https://github.com/msokalski/$pkgname/archive/$pkgver.tar.gz)
+b2sums=('5a7fd15055a9be22a69708356864c2289a20c2ac82709271279ef0fbcf0d808d3a23a037980f0da644e2ad7a03a033b05ac55afd9e77f2cbe8ae982663f45bc3')
+
+prepare() {
+ cd $pkgname-$pkgver
+ chmod +x build.sh
+}
+
+build() {
+ cd $pkgname-$pkgver
+ ./build.sh
+}
+
+package() {
+ cd $pkgname-$pkgver
+ mkdir -p "$pkgdir"/usr/bin
+ install -Dm755 "$_exname" "$pkgdir"/usr/bin
+}