diff options
author | KnockKnockP | 2020-04-06 22:48:40 +0900 |
---|---|---|
committer | KnockKnockP | 2020-04-06 22:48:40 +0900 |
commit | 2bc8a59ea1c0e038cdf239d39d737b24255bd42c (patch) | |
tree | 3e048c38f35be1597b67b62688d7cda8cb73bc87 | |
parent | 7726877e62101c7c8a87ddc65e5e8c5a426f6926 (diff) | |
download | aur-2bc8a59ea1c0e038cdf239d39d737b24255bd42c.tar.gz |
Update
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 17 insertions, 10 deletions
@@ -1,11 +1,12 @@ pkgbase = stretchy-snek-boi-git pkgdesc = A snake game clone. - pkgver = 1.0.6 + pkgver = 1.0.6.r3.g00731b8 pkgrel = 1 url = https://www.github.com/KnockKnockP/stretchy-snek-boi/ arch = x86_64 license = WTFPL 2.0 - source = stretchy-snek-boi::git+https://github.com/KnockKnockP/stretchy-snek-boi.git + depends = git + source = stretchy-snek-boi::git+https://www.github.com/KnockKnockP/stretchy-snek-boi.git md5sums = SKIP pkgname = stretchy-snek-boi-git @@ -1,24 +1,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 +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') +license=("WTFPL 2.0") url="https://www.github.com/KnockKnockP/stretchy-snek-boi/" -source=("stretchy-snek-boi::git+https://github.com/KnockKnockP/stretchy-snek-boi.git") +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" - make stretchy-snek-boi-git + cd "$_pkgname/source/" + make git } package() { - cd "$_pkgname" + cd "$_pkgname/source/" mkdir $pkgdir/usr/bin/ -p make DESTDIR="$pkgdir/usr/bin" install-git }
\ No newline at end of file |