summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCole Deck2020-08-25 12:25:35 -0500
committerCole Deck2020-08-25 12:25:35 -0500
commit3787bcfcb314483155e5acd9e292521847be230e (patch)
tree1c7536b604b286b37489cfdfda0e9aa69024b7f4 /PKGBUILD
parent68641a9126d0782a8fd3f6c150c81d3ca7b9c50f (diff)
downloadaur-3787bcfcb314483155e5acd9e292521847be230e.tar.gz
update PKGBUILD to get new revisions automatically
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 4 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5b920b60e68..149aea28bc4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=hid-asus-rog-dkms-git
_pkgname=hid-asus-rog
-pkgver=0.2.0.r0.gdad662c
+pkgver=0.2.0.r3.ge62d1ff
pkgrel=1
pkgdesc="Kernel module to patch hid-asus to support more ROG laptops"
arch=('x86_64')
@@ -23,8 +23,9 @@ pkgver() {
}
prepare() {
- cd "${srcdir}"
- sed -e "s/REPLACE_ME/${pkgver}/" -i "dkms.conf"
+ cd "${srcdir}/${_pkgname}"
+ _pkgver=$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
+ sed -e "s/REPLACE_ME/$_pkgver/" -i "../dkms.conf"
}
package() {