summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPeter Strapp2016-02-17 23:27:15 +0000
committerPeter Strapp2016-02-17 23:27:15 +0000
commit09016bd09c7438e5c7ad8408974d68af120deae5 (patch)
tree745a834388667b5fe6d766a2286b155e168e9bd4 /PKGBUILD
parent3e9cff1f60325015904c7b10b5c0ec509a549c06 (diff)
downloadaur-09016bd09c7438e5c7ad8408974d68af120deae5.tar.gz
Improved versioning.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e54be84a7350..d3ff8b9fb8d6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
# Maintainer: Peter Strapp <peter at strapp.co.uk>
pkgname=libqhy-git
-pkgver=20150917
-pkgrel=1
+pkgver=r78.218cc69
+pkgrel=2
url="https://github.com/qhyccd-lzr/QHYCCD_Linux"
license=(GPL2)
arch=(i686 x86_64)
@@ -16,7 +16,7 @@ _gitname='QHYCCD_Linux'
pkgver() {
cd "$_gitname"
- git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {