Instantly share code, notes, and snippets.

Embed
What would you like to do?
xboxdrv-stable-git
# Maintainer: Vítor Ferreira <vitor.dominor@gmail.com>
# Contributor: Lubosz Sarnecki <lubosz@gmail.com>
pkgname=xboxdrv-stable-git
pkgver=0.8.5.1107.e903c5f
pkgrel=1
pkgdesc="An XBox/XBox 360 gamepad driver - as alternative to the xpad-kernel module - with more configurability, runs in userspace and supports a multitude of controllers"
arch=('i686' 'x86_64')
url="http://pingus.seul.org/~grumbel/xboxdrv/"
license=('GPL3')
depends=('libx11' 'dbus-glib' 'libusbx')
makedepends=('git' 'scons' 'boost' 'pkg-config' 'libx11' 'dbus-glib' 'libusb')
provides=('xboxdrv='$pkgver)
conflicts=('xboxdrv')
source=("${pkgname}::git://github.com/Grumbel/xboxdrv.git#tag=v0.8.5"
"xboxdrv.service"
"xboxdrv.conf")
md5sums=('SKIP'
'c44dc13f6d34cd7fc61c87ecd8c3a547'
'c73bb9cf8ff763e7c477366472d19813')
pkgver() {
cd ${srcdir}/${pkgname}
ver=$(cat VERSION)
revision=$(git rev-list --count HEAD)
hash=$(git log --pretty=format:'%h' -n 1)
echo $ver.$revision.$hash
}
build() {
cd ${srcdir}/${pkgname}
make PREFIX=/usr
}
package() {
cd ${srcdir}/${pkgname}
make PREFIX=/usr DESTDIR="$pkgdir/" install
install -D -m755 "$srcdir/xboxdrv.service" "$pkgdir/usr/lib/systemd/system/xboxdrv.service"
install -D -m644 "$srcdir/xboxdrv.conf" "$pkgdir/etc/conf.d/xboxdrv"
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment