summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Gembe2020-01-17 20:43:23 +0700
committerAxel Gembe2020-01-17 20:43:23 +0700
commit0a6def0e6b6b7f6b2844ddacc82aca7d6f333e3d (patch)
tree98e22964967146b9b7c338b7ddc60b06dab1b5e0
parent99346570a92daddb6f602a34ea6c360b8321fcd7 (diff)
downloadaur-0a6def0e6b6b7f6b2844ddacc82aca7d6f333e3d.tar.gz
Version 1.0.r8.g74ce8d5, use git describe in pkgver
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c8302467d5b..4b2bc32b1b8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = fulcrum-git
pkgdesc = A fast & nimble SPV server for Bitcoin Cash
- pkgver = 74ce8d5
+ pkgver = 1.0.r8.g74ce8d5
pkgrel = 1
url = https://github.com/cculianu/Fulcrum
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 90e49f32789..09b522f35b7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=fulcrum-git
_pkgname=${pkgname/-git/}
pkgdesc='A fast & nimble SPV server for Bitcoin Cash'
-pkgver=74ce8d5
+pkgver=1.0.r8.g74ce8d5
pkgrel=1
url='https://github.com/cculianu/Fulcrum'
arch=('any')
@@ -21,7 +21,7 @@ _qmake_args="CONFIG+=release"
pkgver() {
cd "$pkgname"
- git rev-parse --short HEAD
+ git describe --long --tags | sed 's/v\(.*\)/\1/;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {