diff options
author | Jérôme Launay | 2022-12-23 01:56:52 +0100 |
---|---|---|
committer | Jérôme Launay | 2022-12-23 01:56:52 +0100 |
commit | da9ba3846dd8380e3d2e236baadc7054eeb916f0 (patch) | |
tree | 8e21c696ff196e057d3c2c40f0bfd5d82371611f | |
parent | 61e1cd57b3debb6754e9eb6fd2270943ac31b0ab (diff) | |
download | aur-da9ba3846dd8380e3d2e236baadc7054eeb916f0.tar.gz |
Add pkgver()
-rwxr-xr-x | .SRCINFO | 5 | ||||
-rwxr-xr-x | PKGBUILD | 7 |
2 files changed, 8 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = g910-gkeys-git pkgdesc = GKey support for Logitech G910 Keyboard on GNU/Linux pkgver = 0.2.5 - pkgrel = 1 + pkgrel = 2 url = https://github.com/JSubelj/g910-gkey-macro-support install = g910-gkeys-git.install arch = any @@ -10,8 +10,7 @@ pkgbase = g910-gkeys-git depends = python-uinput backup = etc/g910-gkeys/config.json backup = usr/lib/systemd/system/g910-gkeys.service - source = git://github.com/JSubelj/g910-gkey-macro-support.git + source = git+https://github.com/JSubelj/g910-gkey-macro-support.git md5sums = SKIP pkgname = g910-gkeys-git - @@ -4,7 +4,7 @@ pkgname=g910-gkeys-git _appname=g910-gkeys _gitname=g910-gkey-macro-support pkgver=0.2.5 -pkgrel=1 +pkgrel=2 pkgdesc='GKey support for Logitech G910 Keyboard on GNU/Linux' url='https://github.com/JSubelj/g910-gkey-macro-support' arch=('any') @@ -20,6 +20,11 @@ build() { python setup.py build } +pkgver() { + cd "$pkgname" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + package() { cd ${srcdir}/${_gitname} python setup.py install --root="${pkgdir}" --optimize=1 --skip-build |