diff options
author | Ivan Shapovalov | 2022-03-19 12:25:38 +0300 |
---|---|---|
committer | Ivan Shapovalov | 2022-03-19 12:25:38 +0300 |
commit | 28d257abdf2764a03260cec0f1105c0173ec0738 (patch) | |
tree | 67022f57eae7161783d9b53b7f74e58aceb61c03 /PKGBUILD | |
parent | 2c1939afe3a074965a79c780b4f7265e9260dab5 (diff) | |
download | aur-pass-git-helper-git.tar.gz |
Fix pkgver() to be monotonic
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ # Maintainer: Johannes Wienke <languitar@semipol.de> pkgname=pass-git-helper-git -pkgver=0.2.dev0.g42075f0 +pkgver=1.2.0.r59.g9cc9f0b pkgrel=1 pkgdesc="A git credential helper interfacing with pass, the standard unix password manager" arch=(any) @@ -11,12 +11,12 @@ depends=('python3' 'pass') makedepends=('git' 'python-setuptools') conflicts=('pass-git-helper') provides=('pass-git-helper') -source=("${pkgname}::git://github.com/languitar/pass-git-helper.git") +source=("${pkgname}::git+https://github.com/languitar/pass-git-helper.git") md5sums=('SKIP') pkgver() { cd "$pkgname" - printf "%s.g%s" "$(python setup.py --version 2> /dev/null)" "$(git rev-parse --short HEAD)" + git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./' } package() { |