summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeifeng Yu2018-10-17 13:04:20 -0400
committerPeifeng Yu2018-10-17 13:04:20 -0400
commit7766ee2463cf0d813c7bc7ad147e08de6577a722 (patch)
tree05771c3902d1ea7c2e68847b4124449b6accfb13
parentd102973a335faf07317acbd1dc67480b365affc6 (diff)
downloadaur-7766ee2463cf0d813c7bc7ad147e08de6577a722.tar.gz
Remove version prefix in pkgver
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1d2f751d180..438e37e7d54 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,12 +15,12 @@ provides=($_pkgname)
depends=(qt5-base qt5-svg kcoreaddons kdoctools kparts kio kwidgetsaddons kiconthemes graphviz)
makedepends=(cmake extra-cmake-modules boost docbook-xsl)
source=('git://anongit.kde.org/kgraphviewer')
-md5sums=(SKIP)
+md5sums=('SKIP')
pkgver() {
cd $_pkgname
( set -o pipefail
- git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+ git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}