summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorC0rn3j2020-04-15 22:17:13 +0200
committerC0rn3j2020-04-15 22:17:13 +0200
commitc3a3bd7dcef1f039b2ca0eb21a689bf3b0429e19 (patch)
treeadfbd015defa59cf99922b5410497ce1f03b2fde /PKGBUILD
parentb150193c9bcbc2a2e5b276890caa9f11ebe70411 (diff)
downloadaur-c3a3bd7dcef1f039b2ca0eb21a689bf3b0429e19.tar.gz
add pkgver()
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 49ed55e1c25..488202dd120 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Previous maintainer: Arda Demir <ardadem.dev@gmail.com>
pkgname=a4tech-bloody-driver-git
_pkgname=a4tech-bloody-driver
-pkgver=r18.5a19d1f0
+pkgver=r155.2beb8fe
pkgrel=1
pkgdesc='Linux driver for a4tech bloody mouse series.'
arch=('any')
@@ -16,9 +16,13 @@ source=($pkgname::git+https://gitlab.com/C0rn3j/a4tech_bloody_p85_driver
sha256sums=('SKIP'
'2ee35d38f86e6f39eb0093d09f75030e478146bc0a56bbdbb45822c77c0e9d18')
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
build() {
cd "${srcdir}/${pkgname}"
-
cmake ./
make
cd qt