summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRichard Neumann2016-06-25 01:09:49 +0200
committerRichard Neumann2016-06-25 01:09:49 +0200
commit0bee10f324df83331f786b8c08358dab64c6cb4f (patch)
treeadb0e6e42e42dd525664aa948489d2bf7853c239 /PKGBUILD
parentff2ac39d4bd86965a6cc3b19e7c8f6849517e8a2 (diff)
downloadaur-0bee10f324df83331f786b8c08358dab64c6cb4f.tar.gz
Updated pkgver() function
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1ce0c69136b..28b539814e9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Richard Neumann aka. rne <r dot neumann at homeinfo fullstop de>
pkgname='libmbim-qmi-over-mbim'
-pkgver=0.0.1.r325.gd36c3c7
+pkgver=r412.d36c3c7
pkgrel=1
pkgdesc="MBIM modem protocol helper library with experimental qmi-over-mbim patch"
arch=('i686' 'x86_64')
@@ -19,7 +19,7 @@ srcdir='src'
pkgver() {
cd libmbim
- git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}