diff options
author | John Beard | 2023-02-19 22:49:58 +0000 |
---|---|---|
committer | John Beard | 2023-02-19 22:49:58 +0000 |
commit | a28c7ae5dc186131349046e023d48f52817d7501 (patch) | |
tree | fd0385f76966ae19f3161d9ffe646c12ec36087d | |
parent | 481710a1be7f0a9b106701cce35534a634c28e45 (diff) | |
download | aur-a28c7ae5dc186131349046e023d48f52817d7501.tar.gz |
Add pkgver function and bunp to 0.7.. (thanks kempniu)
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2,7 +2,7 @@ # Author: Jonathan Lebon pkgname=firefox-extension-textern-native-git -pkgver=0.6.876a83b +pkgver=0.7.r6.g5e10500 pkgrel=1 url="https://github.com/jlebon/textern" license=('GPL') @@ -34,3 +34,8 @@ package() { sed -i -e "s|$pkgdir||g" "$pkgdir/usr/lib/mozilla/native-messaging-hosts/textern.json" } +pkgver() { + cd "$srcdir/textern" + git describe --long | sed 's/^v//;s/-/.r/;s/-/./' +} + |