From 2aca0dc53e3ddcb6d3b1572a841c2b30c27c2c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 4 Jan 2023 09:40:27 +0700 Subject: [PATCH] xpadneo: not install modprobe and udev on every dkms build --- srcpkgs/xpadneo/template | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/srcpkgs/xpadneo/template b/srcpkgs/xpadneo/template index bcb1033c495..65d06f2e163 100644 --- a/srcpkgs/xpadneo/template +++ b/srcpkgs/xpadneo/template @@ -1,7 +1,7 @@ # Template file for 'xpadneo' pkgname=xpadneo version=0.9.1 -revision=1 +revision=2 depends="dkms bluez" short_desc="Bluetooth driver for Xbox One Wireless Controller" maintainer="Joshua Krämer " @@ -12,9 +12,16 @@ checksum=1f3617b0689d93877a706a52037649d6cad011cf70491b5b43da015a02312058 dkms_modules="hid-xpadneo ${version}" do_install() { - vsed -i hid-xpadneo/dkms.conf.in -e "s/@DO_NOT_CHANGE@/${version}/" - mv hid-xpadneo/dkms.conf{.in,} - rm hid-xpadneo/Makefile + cd hid-xpadneo + sed -e " + 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} - 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 }