summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-06-19 03:10:03 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-06-19 03:10:03 -0300
commit9fc37a510b0a0e866783fc2c6c03b7cfa4581ea4 (patch)
tree90ebaeec5fb59c9df9d5c09f2bec0c983c28ff17
parent607dae3919672d68ed0d14e6db5e636724d783fc (diff)
downloadabslibre-9fc37a510b0a0e866783fc2c6c03b7cfa4581ea4.tar.gz
abslibre-9fc37a510b0a0e866783fc2c6c03b7cfa4581ea4.tar.bz2
abslibre-9fc37a510b0a0e866783fc2c6c03b7cfa4581ea4.zip
xboxdrv: add new package to [pcr]
-rw-r--r--pcr/xboxdrv/PKGBUILD40
-rw-r--r--pcr/xboxdrv/xboxdrv.default5
-rw-r--r--pcr/xboxdrv/xboxdrv.service10
3 files changed, 55 insertions, 0 deletions
diff --git a/pcr/xboxdrv/PKGBUILD b/pcr/xboxdrv/PKGBUILD
new file mode 100644
index 000000000..ddf040950
--- /dev/null
+++ b/pcr/xboxdrv/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer (Arch): Jack Mitchell <jack@embed.me.uk>
+# Contributor (Arch): Kevin MacMartin <prurigro at gmail dot com>
+
+pkgname=xboxdrv
+pkgver=0.8.5
+pkgrel=3
+url="http://pingus.seul.org/~grumbel/${pkgname}/"
+pkgdesc="Userspace gamepad driver for GNU/Linux"
+license=('GPL3')
+arch=('i686' 'x86_64')
+depends=('libx11' 'dbus-glib' 'libusbx' 'python2')
+makedepends=('scons' 'boost' 'pkg-config' 'libx11' 'dbus-glib' 'libusb')
+backup=("etc/default/${pkgname}")
+
+source=("http://pingus.seul.org/~grumbel/${pkgname}/${pkgname}-linux-${pkgver}.tar.bz2"
+ "${pkgname}.service"
+ "${pkgname}.default")
+
+sha512sums=('954a3664462dfeff63a455f3dfea4bc14f8c3e07fa9b0c299bb523b4089faad7f8d634511eb66c023bd289adbbf18e96ce26cbcf5b8ffc9bb3088f1afe532601'
+ 'f1094119372512b29c070949606d6ee7ebd119195a717ddac8a60a0c94016b7d82b569283f02e05ad3e5e76227e8437c7072d346b30960d1eb2a4a681894d5d3'
+ '4f6e9a12b208254e19daba477dd7787147a8b2c8a83007d92f8cfce6212c21ce3306f23a2669080f0e46986ca102ab08c262b42c678caf1a891326b4e2c40b5f')
+
+prepare() {
+ cd ${pkgname}-linux-${pkgver}
+ sed -e 's/env python$/env python2/g' -i xboxdrvctl
+}
+
+build() {
+ cd ${pkgname}-linux-${pkgver}
+ scons $MAKEFLAGS
+}
+
+package() {
+ install -Dm644 ${pkgname}.service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
+ install -Dm644 ${pkgname}.default "${pkgdir}/etc/default/${pkgname}"
+ cd ${pkgname}-linux-${pkgver}
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/pcr/xboxdrv/xboxdrv.default b/pcr/xboxdrv/xboxdrv.default
new file mode 100644
index 000000000..ced6554b7
--- /dev/null
+++ b/pcr/xboxdrv/xboxdrv.default
@@ -0,0 +1,5 @@
+[xboxdrv]
+silent = true
+next-controller = true
+[xboxdrv-daemon]
+dbus = disabled
diff --git a/pcr/xboxdrv/xboxdrv.service b/pcr/xboxdrv/xboxdrv.service
new file mode 100644
index 000000000..88699afae
--- /dev/null
+++ b/pcr/xboxdrv/xboxdrv.service
@@ -0,0 +1,10 @@
+[Unit]
+Description = Gamepad management daemon
+
+[Service]
+User = root
+Type = simple
+ExecStart = /usr/bin/xboxdrv -D -c /etc/default/xboxdrv --detach-kernel-driver
+
+[Install]
+WantedBy = multi-user.target