New package: xone-0.3

This commit is contained in:
xolophreny 2022-10-18 15:16:08 +05:00 committed by Duncan Overbruck
parent 0be48c6917
commit d12f59109e
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,2 @@
Use the included 'xone-update-firmware' script
to update wireless dongle firmware

24
srcpkgs/xone/template Normal file
View File

@ -0,0 +1,24 @@
# Template file for 'xone'
pkgname=xone
version=0.3
revision=1
depends="curl cabextract dkms"
short_desc="Modern Linux driver for Xbox One and Xbox Series X|S controllers"
maintainer="xolophreny <xolophreny@proton.me>"
license="GPL-2.0-only"
homepage="https://github.com/medusalix/xone"
distfiles="https://github.com/medusalix/xone/archive/refs/tags/v${version}.tar.gz"
checksum=993f6b2b07c3236ce283d5de4da47dbfc16a86e056af504a4958d87f718ece20
dkms_modules="${pkgname} ${version}"
do_install() {
vinstall install/modprobe.conf 644 /usr/lib/modprobe.d xone.conf
vbin install/firmware.sh xone-update-firmware
vdoc "${FILESDIR}/README.voidlinux"
find . -type f \( -name dkms.conf -o -name '*.c' \) -exec sed -i "s/#VERSION#/$version/" {} +
vmkdir /usr/src/${pkgname}-${version}
for file in bus driver transport Kbuild dkms.conf; do
vcopy $file /usr/src/${pkgname}-${version}/
done
}