summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Grunbaum2020-11-14 11:36:21 +1100
committerJoel Grunbaum2020-11-14 11:36:21 +1100
commitbff4f938910287bcdcfec1999676fec39440b565 (patch)
tree38874689776214ca090f6e8b16a722b6e02292d9
parent854c05209a8659cf970fa12578a4c19c8807149d (diff)
downloadaur-bff4f938910287bcdcfec1999676fec39440b565.tar.gz
changed versioning scheme
-rw-r--r--.SRCINFO2
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD4
3 files changed, 7 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c6c3b00c84a..73f260374bc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = xpadneo-dkms-git
pkgdesc = Advanced Linux Driver for Xbox One Wireless Gamepad
- pkgver = 0.8.r45.g63fceb1
+ pkgver = 0.8.r57.g2126928
pkgrel = 1
url = https://github.com/atar-axis/xpadneo
arch = x86_64
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..018a3de0814
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!PKGBUILD
+!.SRCINFO
+!.gitignore
diff --git a/PKGBUILD b/PKGBUILD
index 2443679d327..b6640f7fc03 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=xpadneo
pkgname=xpadneo-dkms-git
-pkgver=0.8.r45.g63fceb1
+pkgver=0.8.r57.g2126928
pkgrel=1
pkgdesc='Advanced Linux Driver for Xbox One Wireless Gamepad'
arch=('x86_64')
@@ -24,7 +24,7 @@ pkgver() {
package() {
cd "${srcdir}/${_pkgname}"
- source lib/installer.sh
+ VERSION=$(git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
echo "* replacing version string if necessary"
sed -i 's/PACKAGE_VERSION="@DO_NOT_CHANGE@"/PACKAGE_VERSION="'$VERSION'"/g' hid-xpadneo/dkms.conf