PKGBUILDs/aur/xf86-input-xwiimote/PKGBUILD
2013-02-21 15:55:52 -05:00

30 lines
922 B
Bash

# Maintainer: David Herrmann <dh.herrmann@googlemail.com>
pkgname=xf86-input-xwiimote
pkgver=0.2
pkgrel=1
pkgdesc='X.Org Nintendo Wii Remote input driver'
arch=('i686' 'x86_64')
url="http://github.com/dvdhrm/xf86-input-xwiimote"
license=('BSD')
depends=('xwiimote>=0.3' 'udev')
makedepends=('xorg-server-devel>=1.10.99.902')
conflicts=('xorg-server<1.10.99.902')
options=(!libtool)
source=(https://github.com/downloads/dvdhrm/$pkgname/$pkgname-$pkgver.tar.bz2)
#source=($pkgname-$pkgver.tar.bz2)
md5sums=('af97ba6d95f74a588aff721793bf6d3d')
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
mkdir -p "$pkgdir/usr/share/licenses/$pkgname/"
cp COPYING "$pkgdir/usr/share/licenses/$pkgname/"
mkdir -p "$pkgdir/etc/X11/xorg.conf.d/"
cp "60-xorg-xwiimote.conf" "$pkgdir/etc/X11/xorg.conf.d/60-xwiimote.conf"
make DESTDIR="$pkgdir/" install
}