diff options
author | Orestis Floros | 2020-05-27 23:54:07 +0200 |
---|---|---|
committer | Orestis Floros | 2020-05-27 23:54:07 +0200 |
commit | 8808cbcbb3824044bde72e64f8b1e6b19c50d00b (patch) | |
tree | 4f8e179f42358068bd14bc3f11585152be9794e3 | |
parent | a365a333daa110ed548f3bac7cad19f6ad235b41 (diff) | |
download | aur-8808cbcbb3824044bde72e64f8b1e6b19c50d00b.tar.gz |
Switch to pkgver-based versioning
See https://wiki.archlinux.org/index.php/VCS_package_guidelines#Git
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = xkb-switch-git pkgdesc = Program that allows to query and change the XKB layout state - pkgver = 20171117 - pkgrel = 4 + pkgver = 1.6.0.r12.gba0ee5d + pkgrel = 1 url = https://github.com/grwlf/xkb-switch arch = i686 arch = x86_64 @@ -3,8 +3,8 @@ # Contributor: DeaDDooMER <deaddoomer@deadsoftware.ru> pkgname=xkb-switch-git -pkgver=20171117 -pkgrel=4 +pkgver=1.6.0.r12.gba0ee5d +pkgrel=1 pkgdesc='Program that allows to query and change the XKB layout state' arch=('i686' 'x86_64') url='https://github.com/grwlf/xkb-switch' @@ -16,6 +16,11 @@ makedepends=('git' 'cmake') source=('git+git://github.com/grwlf/xkb-switch') sha1sums=('SKIP') +pkgver() { + cd xkb-switch + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + build() { cd xkb-switch cmake -DCMAKE_INSTALL_PREFIX=/usr . |