diff options
author | Nazar Vinnichuk | 2020-05-21 17:05:37 +0300 |
---|---|---|
committer | Nazar Vinnichuk | 2020-05-21 17:05:37 +0300 |
commit | 9c3da5ab3229410082897363676c834c0b88fb02 (patch) | |
tree | 941ff90a482a1e93ad8271ee478b3667b7b6473a /PKGBUILD | |
parent | 0183741d6cae164aaee7fc059b756385e4415086 (diff) | |
download | aur-9c3da5ab3229410082897363676c834c0b88fb02.tar.gz |
Use tags to create a version string.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,7 +1,7 @@ # Maintainer: Nazar Vinnichuk <nazar.vinnichuk at tutanota dot com> pkgname=pacwall-git _pkgname=${pkgname%-git} -pkgver=r79.6c0be4d +pkgver=1.0.1 pkgrel=1 pkgdesc="Dependency graph of installed packages on your wallpaper." url="http://github.com/Kharacternyk/${_pkgname}" @@ -19,7 +19,8 @@ sha256sums=(SKIP) pkgver() { cd "${srcdir}/${_pkgname}" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + local _version="$(git describe --tags)" + printf "${_version#v}" } package() { |