summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Lindner2016-01-20 10:09:05 +0100
committerFlorian Lindner2016-01-20 10:09:05 +0100
commit8dcdd7296a388bcd123ca416e6bcd9053868109d (patch)
treeb93c38f60b69d7c977128073fe7855782cbbb46a
parentab43cb32b7fffc84fc9d2c4966256bb054fde9e2 (diff)
downloadaur-8dcdd7296a388bcd123ca416e6bcd9053868109d.tar.gz
Use alternative pkgver() function.
The repo does not contains tags anymore.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD6
2 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 984959cd48e..47ccabeec3a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Wed Jan 6 11:09:52 UTC 2016
+# Wed Jan 20 09:08:38 UTC 2016
pkgbase = rtags-git
pkgdesc = RTags is a client/server application that indexes C/C++ code.
- pkgver = v2.0.r990.gccccd8a
+ pkgver = r5951.5687de1
pkgrel = 1
url = https://github.com/Andersbakken/rtags
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 861569814a0..303ac3e4afa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
pkgname=rtags-git
-pkgver=v2.0.r990.gccccd8a
+pkgver=r5951.5687de1
pkgrel=1
pkgdesc="RTags is a client/server application that indexes C/C++ code."
arch=('i686' 'x86_64')
@@ -21,8 +21,8 @@ sha256sums=('SKIP'
'25d1842a4187a1933ff27833201cfd0879da71a50241860e32edecfc7e75f14f')
pkgver() {
- cd rtags
- git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+ cd rtags
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {