summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 4 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 963c1e19e3b..3c1b74d11d0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = xpadneo-dkms-git
pkgdesc = Advanced Linux Driver for Xbox One Wireless Gamepad
pkgver = 0.9.r54.g7d1e6fd
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/atar-axis/xpadneo
arch = x86_64
arch = armv7l
diff --git a/PKGBUILD b/PKGBUILD
index 433744a9ba2..a06be94a0bb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=xpadneo
pkgname=xpadneo-dkms-git
pkgver=0.9.r54.g7d1e6fd
-pkgrel=2
+pkgrel=3
pkgdesc='Advanced Linux Driver for Xbox One Wireless Gamepad'
arch=('x86_64' 'armv7l')
url='https://github.com/atar-axis/xpadneo'
@@ -26,6 +26,8 @@ package() {
cd hid-xpadneo
VERSION=$(git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
cd ..
+ echo "* replacing version string if necessary"
+ sed -i 's/PACKAGE_VERSION="@DO_NOT_CHANGE@"/PACKAGE_VERSION="'$VERSION'"/g' hid-xpadneo/dkms.conf
sed -i 's@/etc/udev/rules\.d@/usr/lib/udev/rules\.d@g' hid-xpadneo/dkms.post_install
sed -i 's@/etc/udev/rules\.d@/usr/lib/udev/rules\.d@g' hid-xpadneo/dkms.post_remove