diff options
author | Steve Engledow | 2020-07-03 15:07:51 +0100 |
---|---|---|
committer | Steve Engledow | 2020-07-03 15:07:51 +0100 |
commit | 584ad69e50ea080f46605335cfb3dc24f5b0840d (patch) | |
tree | 67d54fedb32124c82edee24d9b9bf05515ac61df | |
parent | 385a5cfcb0043d865bf3f632a8c16d5e8d703380 (diff) | |
download | aur-584ad69e50ea080f46605335cfb3dc24f5b0840d.tar.gz |
Calculate pkgver from git describe
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = xbindkeys-git pkgdesc = xbindkeys is a program that allows you to launch shell commands with your keyboard or your mouse under X Windows - pkgver = git - pkgrel = 1 + pkgver = v1.8.7.r1.g75909d9 + pkgrel = 2 url = https://www.nongnu.org/xbindkeys/xbindkeys.html arch = any license = GPL2 @@ -1,7 +1,7 @@ # Maintainer: Steve Engledow <steve@offend.me.uk> pkgname=xbindkeys-git -pkgver=git -pkgrel=1 +pkgrel=2 +pkgver=v1.8.7.r1.g75909d9 pkgdesc='xbindkeys is a program that allows you to launch shell commands with your keyboard or your mouse under X Windows' url='https://www.nongnu.org/xbindkeys/xbindkeys.html' arch=(any) @@ -18,6 +18,11 @@ source=('git+https://git.savannah.nongnu.org/git/xbindkeys.git') sha256sums=('SKIP') provides=('xbindkeys') +pkgver() { + cd xbindkeys + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + build() { cd xbindkeys ./configure --prefix=/usr |