mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
xpadneo: not install modprobe and udev on every dkms build
This commit is contained in:
parent
1d4a9d6c71
commit
2aca0dc53e
1 changed files with 12 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'xpadneo'
|
# Template file for 'xpadneo'
|
||||||
pkgname=xpadneo
|
pkgname=xpadneo
|
||||||
version=0.9.1
|
version=0.9.1
|
||||||
revision=1
|
revision=2
|
||||||
depends="dkms bluez"
|
depends="dkms bluez"
|
||||||
short_desc="Bluetooth driver for Xbox One Wireless Controller"
|
short_desc="Bluetooth driver for Xbox One Wireless Controller"
|
||||||
maintainer="Joshua Krämer <joshua@kraemer.link>"
|
maintainer="Joshua Krämer <joshua@kraemer.link>"
|
||||||
|
@ -12,9 +12,16 @@ checksum=1f3617b0689d93877a706a52037649d6cad011cf70491b5b43da015a02312058
|
||||||
dkms_modules="hid-xpadneo ${version}"
|
dkms_modules="hid-xpadneo ${version}"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vsed -i hid-xpadneo/dkms.conf.in -e "s/@DO_NOT_CHANGE@/${version}/"
|
cd hid-xpadneo
|
||||||
mv hid-xpadneo/dkms.conf{.in,}
|
sed -e "
|
||||||
rm hid-xpadneo/Makefile
|
s/@DO_NOT_CHANGE@/${version}/
|
||||||
|
/REMAKE_INITRD=/d
|
||||||
|
/POST_INSTALL=/d
|
||||||
|
/POST_REMOVE=/d
|
||||||
|
" dkms.conf.in >dkms.conf
|
||||||
vmkdir usr/src/hid-xpadneo-${version}
|
vmkdir usr/src/hid-xpadneo-${version}
|
||||||
vcopy "hid-xpadneo/*" usr/src/hid-xpadneo-${version}
|
vcopy src usr/src/hid-xpadneo-${version}
|
||||||
|
vinstall dkms.conf 644 usr/src/hid-xpadneo-${version}
|
||||||
|
vinstall etc-modprobe.d/xpadneo.conf 644 usr/lib/modprobe.d
|
||||||
|
vinstall etc-udev-rules.d/60-xpadneo.rules 644 usr/lib/udev/rules.d
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue