summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 8a9c97a9d08d8f61d66e297a95e48d25fc4c5679 (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
# 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
}