summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRyan O'Beirne2021-06-12 18:10:06 -0400
committerRyan O'Beirne2021-06-12 19:10:54 -0400
commit090255a241d677229239c1455307a04fafb9f373 (patch)
treec8cae2c6e71bbaa914ca26c071770062669f4b8e /PKGBUILD
parent7225d7bd193328f044b3ba3a4820f1d606afaf26 (diff)
downloadaur-xbox-generic-controller.tar.gz
Add install script
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c7cd7e02904..36c99b4341a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,31 @@
-# Maintainer: Ryan O'Beirne <ryanobeirne@gmail.com>
+# Maintainer: Ryan O'Beirne <ryanobeirne@ryanobeirne.com>
pkgname=xbox-generic-controller
-pkgver=0.1.1
+pkgver=0.1.2
pkgrel=1
pkgdesc="Fix for generic XBox-like USB gamepads that are recognized but not functional"
arch=("any")
url="https://gitlab.com/ryanobeirne/xbox-generic-controller"
license=('MIT')
-depends=("systemd" "python>=3" "python-pyusb" "xboxdrv" "python-systemd")
+depends=("systemd" "python>=3" "python-pyusb" "python-systemd" "xboxdrv")
+install=xbox-generic-controller.install
source=(
$pkgname.conf
50_$pkgname.rules
fixcontroller.py
+ $pkgname.install
)
sha256sums=(
bdc54ef5b9728751f89f08039c69141f7515b9df723cbda1df0239c5109d249b
ecb8c515f1b88fe4986eec098bd6863c459c39fd569d759884936e39d22d586b
- b618d4286f7c70e2f02fce495cc7ba34ac31ad4a3350dd45387a81313bcad78d
+ d709c20ff399be6e3dd26c762763a07ea8fcf96349477abfa0ae080526d86dbf
+ f96288ed8d715548872b44cbc7fe19c5f29ff6a41b0b284f5fad7da21499bdb4
)
package() {
- install -D "${source[0]}" "$pkgdir/etc/modprobe.d/${source[0]##*/}"
- install -D "${source[1]}" "$pkgdir/etc/udev/rules.d/${source[1]##*/}"
- install -D "${source[2]}" "$pkgdir/usr/bin/${source[2]##*/}"
+ install -Dm644 "${source[0]}" "$pkgdir/etc/modprobe.d/${source[0]##*/}"
+ install -Dm644 "${source[1]}" "$pkgdir/etc/udev/rules.d/${source[1]##*/}"
+ install -Dm755 "${source[2]}" "$pkgdir/usr/bin/${source[2]##*/}"
}