summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorcaltlgin2020-10-04 10:30:38 +1300
committercaltlgin2020-10-04 10:30:38 +1300
commitefa54513a55b45bbe46723c705acf6920b2c7364 (patch)
treee62342a116356727a287eae7a40cb3722ea1502e /PKGBUILD
parentf0ad3e14e8d58891b11aab7c2d88c3578c539bdf (diff)
downloadaur-bashmount-git.tar.gz
Add pkgver() function
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 40281ba696f..740bad391d8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
_pkgname='bashmount'
pkgname="${_pkgname}-git"
-pkgver=0.43.r17.g1f75f01
-pkgrel=2
+pkgver=4.3.2.r0.g9a15ab7
+pkgrel=1
pkgdesc='Tool to mount and unmount removable media from the command-line'
arch=('any')
url='https://github.com/jamielinux/bashmount'
@@ -17,6 +17,10 @@ backup=("etc/${_pkgname}.conf")
source=("git+${url}.git")
sha256sums=('SKIP')
+pkgver() {
+ git -C "${_pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
package() {
cd "${_pkgname}"
install -Dm755 -t "${pkgdir}/usr/bin" "${_pkgname}"