summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornigelwarning2020-10-18 12:52:44 +0200
committernigelwarning2020-10-18 12:52:44 +0200
commit2ad5d8984e74e53edb7865331fa22b2befc0fa15 (patch)
treecf17811932fa26139a9555bf140276e5956a76d5
parentbcfbb0fe19720b9d7b7c18c1f365f9cd7a89fa7e (diff)
downloadaur-2ad5d8984e74e53edb7865331fa22b2befc0fa15.tar.gz
added pkver
-rw-r--r--PKGBUILD5
1 files changed, 5 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bd774fa315e..049e3066c20 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,6 +13,11 @@ sha512sums=('SKIP')
pkgdesc='GUI utility built on top of TUXEDO Keyboard. Provides a bash CLI (backlight) and a minimal Python UI.'
depends=('python' 'tk' 'polkit')
makedepends=('git')
+
+pkgver() {
+ git -C "${_pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
package() {
mkdir -p "${pkgdir}/usr/share/tuxedo-backlight-control/"
install -D "${srcdir}/tuxedo-backlight-control/src/usr/share/tuxedo-backlight-control/backlight.py" "${pkgdir}/usr/local/bin/backlight"