summaryrefslogtreecommitdiff
path: root/pcr/zeronet-git
diff options
context:
space:
mode:
authorGaming4JC <g4jc@openmailbox.org>2017-02-05 18:03:00 -0500
committerGaming4JC <g4jc@openmailbox.org>2017-02-05 18:03:00 -0500
commit475ef830416cbf76ad02aea1c42529ea0fdede60 (patch)
tree16a9d834dfdf32b897a2f22f78d9a8a7b2eae441 /pcr/zeronet-git
parent1b28124676b8748519f03d8c441e95f84535f7ec (diff)
downloadabslibre-475ef830416cbf76ad02aea1c42529ea0fdede60.tar.gz
abslibre-475ef830416cbf76ad02aea1c42529ea0fdede60.tar.bz2
abslibre-475ef830416cbf76ad02aea1c42529ea0fdede60.zip
add zeronet-git
Diffstat (limited to 'pcr/zeronet-git')
-rw-r--r--pcr/zeronet-git/PKGBUILD4
1 files changed, 1 insertions, 3 deletions
diff --git a/pcr/zeronet-git/PKGBUILD b/pcr/zeronet-git/PKGBUILD
index 1d3481821..8aa5ebe08 100644
--- a/pcr/zeronet-git/PKGBUILD
+++ b/pcr/zeronet-git/PKGBUILD
@@ -31,9 +31,7 @@ options=(!strip)
pkgver() {
cd "$srcdir/$_gitname"
-
- # Extract version and revision from src/Config.py and append commit
- echo -n $(grep -oP '(?<=self.version = ").+(?=")' src/Config.py).r$(grep -oP '(?<=self.rev = )\w+$' src/Config.py).g$(git rev-parse --short HEAD)
+ git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
package() {