summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9046e776fd6f3c41f09d7f7db80213b2d523a1dd (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
# Maintainer: KnockKnockP <memeboi420666 at gmail dot com>
#                         (What a silly email, I regret making it like this.).

pkgname=("stretchy-snek-boi-git")
_pkgname=("stretchy-snek-boi")
pkgver=1.0.6.r3.g00731b8
pkgrel=1
pkgdesc="A snake game clone."
arch=("x86_64")
license=("WTFPL 2.0")
url="https://www.github.com/KnockKnockP/stretchy-snek-boi/"
source=("stretchy-snek-boi::git+https://www.github.com/KnockKnockP/stretchy-snek-boi.git")
depends=(git)
md5sums=(SKIP)

pkgver() {
    cd "$_pkgname"
    git describe --tags --long | sed "s/\([^-]*-g\)/r\1/;s/-/./g"
}

build() {
	cd "$_pkgname/source/"
	make git
}

package() {
	cd "$_pkgname/source/"
	mkdir $pkgdir/usr/bin/ -p
	make DESTDIR="$pkgdir/usr/bin" install-git
}