summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorXZS2016-02-07 16:18:05 +0100
committerXZS2016-02-07 16:18:05 +0100
commit237b43e7fd382a414d21fbe532dcb5b5a03e1fec (patch)
tree53499ef82c78f0b034364e1b4167d3cc7a8e6e91 /PKGBUILD
parente2eeb512f9cd37ff85bfdaa965f75606a9652c97 (diff)
downloadaur-237b43e7fd382a414d21fbe532dcb5b5a03e1fec.tar.gz
version provided non-git variant
Other packages usually depend on the package without any -git suffix. This makes it possible to als satisfy these dependency requirements when they target specific versions or version ranges.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bfcffad069a..0feb8847663 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,8 +14,8 @@ license=(GPLv2)
makedepends+=('git')
source+=("${_gitname:=${pkgname%-git}}::${_giturl:-git+$url}")
md5sums+=('SKIP')
-provides+=($_gitname)
-conflicts+=($_gitname)
+provides+=("$_gitname=$pkgver")
+conflicts+=("$_gitname")
pkgver() {
cd ${_gitname:-$pkgname}
git describe --long --tags 2>/dev/null | sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1'