summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-05-08 22:48:25 +0200
committerErich Eckner <git@eckner.net>2023-05-08 22:48:25 +0200
commit1e5008fcf405e61ab5b2f5d7dcb382f051ccb091 (patch)
treed512d3673976dab8260ab3d53b2c2c5c238a94da
parent424246ba80437c3b188d4f4c301389672a90f153 (diff)
downloadarchlinuxewe-1e5008fcf405e61ab5b2f5d7dcb382f051ccb091.tar.xz
onionbalance-git: fix pkgver()
-rw-r--r--onionbalance-git/PKGBUILD3
1 files changed, 2 insertions, 1 deletions
diff --git a/onionbalance-git/PKGBUILD b/onionbalance-git/PKGBUILD
index 14faf3007..9f247eb70 100644
--- a/onionbalance-git/PKGBUILD
+++ b/onionbalance-git/PKGBUILD
@@ -3,6 +3,7 @@
_pkgname=onionbalance
pkgname=${_pkgname}-git
pkgver=0.2.2
+_commit="${pkgver##*+g}"
pkgrel=1
pkgdesc='Onionbalance'
arch=('any')
@@ -15,7 +16,7 @@ sha256sums=('SKIP')
pkgver() {
cd $srcdir/$_pkgname
- git describe --tags "${pkgver##*+}" | \
+ git describe --tags "${_commit}" | \
sed '
s/^v//
y/-/+/