-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
24 lines (22 loc) · 891 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Template file for 'xone'
pkgname=xone
version=0.3
revision=2
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
}