Last active
August 29, 2015 14:28
-
-
Save spacepluk/8d75e96c2fd350348210 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Lubosz Sarnecki <[email protected]> | |
# Original Package: Vítor Ferreira <[email protected]> | |
pkgname=xboxdrv-git | |
pkgver=0.9.0.1433.6b540db | |
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#branch=develop" | |
"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} | |
cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr | |
} | |
package() { | |
cd ${srcdir}/${pkgname} | |
make install DESTDIR="$pkgdir/" | |
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