summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrenton Horne2019-03-23 23:31:26 +1000
committerBrenton Horne2019-03-23 23:31:26 +1000
commit86b233e9cfe5c51c5b5e55e258b4b44fbd07c780 (patch)
tree7465990a18890b21f6584a7766a8a473f5a9ea0b
parent0aacff56a681440d362bf4a2f06878d4d96c5feb (diff)
downloadaur-86b233e9cfe5c51c5b5e55e258b4b44fbd07c780.tar.gz
Bumping version string
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 49779ff4d687..f7eb3f59f4be 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = openra-ss-git
pkgdesc = A Solve Survivor-inspired mod of OpenRA, warning you will need the original game assets to play this game
- pkgver = 77
+ pkgver = 77.git.23e1f3e
pkgrel = 1
url = https://www.openra.net
install = openra-ss.install
diff --git a/PKGBUILD b/PKGBUILD
index f143c3e161cc..1db9480c38f1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=openra-ss-git
_pkgname=openra-ss
-pkgver=77
+pkgver=77.git.23e1f3e
pkgrel=1
pkgdesc="A Solve Survivor-inspired mod of OpenRA, warning you will need the original game assets to play this game"
arch=('any')
@@ -21,6 +21,13 @@ md5sums=('SKIP'
'6f7d848e4a53dd600889572d43ed16d2'
'b7a61da8bdec86e6756fc7a8cf6f52ae')
+pkgver() {
+ cd $srcdir/sole-survivor
+ no=$(git rev-list --count HEAD)
+ hash=$(git log | head -n 1 | cut -d ' ' -f 2 | head -c 7)
+ printf "${no}.git.${hash}"
+}
+
prepare() {
cd $srcdir/sole-survivor
dos2unix *.md