summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCole Deck2020-08-25 12:25:35 -0500
committerCole Deck2020-08-25 12:25:35 -0500
commit3787bcfcb314483155e5acd9e292521847be230e (patch)
tree1c7536b604b286b37489cfdfda0e9aa69024b7f4
parent68641a9126d0782a8fd3f6c150c81d3ca7b9c50f (diff)
downloadaur-3787bcfcb314483155e5acd9e292521847be230e.tar.gz
update PKGBUILD to get new revisions automatically
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD7
2 files changed, 7 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3684e075455..f89482d47df 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,11 @@
pkgbase = hid-asus-rog-dkms-git
- pkgdesc = kernel module allowing to switch dedicated graphics card on the Zephyrus G14, dkms version
- pkgver = 0.2.0.r0.gdad662c
+ pkgdesc = Kernel module to patch hid-asus to support more ROG laptops
+ pkgver = 0.2.0.r3.ge62d1ff
pkgrel = 1
url = https://gitlab.com/asus-linux/hid-asus-rog
arch = x86_64
depends = dkms
- provides = hid-asus-rog
+ depends = linux-headers
source = git+https://gitlab.com/asus-linux/hid-asus-rog.git
source = dkms.conf
sha256sums = SKIP
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() {