25 lines
889 B
Bash
25 lines
889 B
Bash
# Template file for 'xone'
|
|
pkgname=xone
|
|
version=0.3
|
|
revision=3
|
|
depends="curl cabextract dkms"
|
|
short_desc="Modern Linux driver for Xbox One and Xbox Series X|S controllers"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
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
|
|
}
|