diff options
author | Florian Lindner | 2017-09-30 15:35:41 +0800 |
---|---|---|
committer | Florian Lindner | 2017-09-30 15:35:41 +0800 |
commit | 837690b750c9dc0ac2c946f24bb273b1efbaacf1 (patch) | |
tree | 011b5c50396013efd93ac5648188ed9bd0aa0b86 /PKGBUILD | |
parent | d6ff19f4c878ece03682be4e8d396439a23739ce (diff) | |
download | aur-837690b750c9dc0ac2c946f24bb273b1efbaacf1.tar.gz |
Use another method to determine the version.
Includes also tags, i.e. release names.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,8 +16,8 @@ source=('hotspot::git+https://github.com/KDAB/hotspot.git') md5sums=('SKIP') pkgver() { - cd "$srcdir/${pkgname%-git}" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "${pkgname%-git}" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { |