summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYangtse Su2020-01-09 07:58:17 +0800
committerYangtse Su2020-01-09 07:58:17 +0800
commit1b7f629eac0aeacd65761244f01e1c2f284e7992 (patch)
treeb019699844daa9c53ae8e0a862a2f409159f4c5c
parente15bd58d28b9146baccd5618f006c15baa5ba8c1 (diff)
downloadaur-1b7f629eac0aeacd65761244f01e1c2f284e7992.tar.gz
change udev rules install directory
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD7
2 files changed, 7 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a955c4f6777..dfcb3a42e8d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = xpadneo-dkms-git
pkgdesc = Advanced Linux Driver for Xbox One Wireless Gamepad
- pkgver = 0.5.4.r336.g5a2a53a
- pkgrel = 2
+ pkgver = 0.6.0.r404.g4414f98
+ pkgrel = 1
url = https://github.com/atar-axis/xpadneo
arch = x86_64
license = GPL
diff --git a/PKGBUILD b/PKGBUILD
index 873ba15bcac..9bbee6eea38 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
_pkgname=xpadneo
pkgname=xpadneo-dkms-git
-pkgver=0.5.4.r336.g5a2a53a
-pkgrel=2
+pkgver=0.6.0.r404.g4414f98
+pkgrel=1
pkgdesc='Advanced Linux Driver for Xbox One Wireless Gamepad'
arch=('x86_64')
url='https://github.com/atar-axis/xpadneo'
@@ -31,6 +31,9 @@ package() {
sed -i 's/PACKAGE_VERSION="@DO_NOT_CHANGE@"/PACKAGE_VERSION="'$VERSION'"/g' hid-xpadneo/dkms.conf
sed -i 's/#define DRV_VER "@DO_NOT_CHANGE@"/#define DRV_VER "'$VERSION'"/g' hid-xpadneo/src/hid-xpadneo.c
+ 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
+
echo "* copying module into /usr/src"
install -dm755 ${pkgdir}/usr/src/hid-xpadneo-${VERSION}
cp --recursive $PWD/hid-xpadneo/* ${pkgdir}/usr/src/hid-xpadneo-${VERSION}