PKGBUILDs/aur/xwiimote/PKGBUILD

29 lines
882 B
Bash
Raw Normal View History

2013-02-21 20:55:52 +00:00
# Maintainer: David Herrmann <dh.herrmann@googlemail.com>
pkgname=xwiimote
2013-08-13 01:17:55 +00:00
pkgver=2
2013-02-21 20:55:52 +00:00
pkgrel=1
pkgdesc='Userspace utilities to control connected Nintendo Wii Remotes'
arch=('i686' 'x86_64')
2013-08-13 01:17:55 +00:00
url="http://dvdhrm.github.io/$pkgname"
license=('MIT')
2013-02-21 20:55:52 +00:00
depends=('udev' 'ncurses')
options=(!libtool)
2013-08-13 01:17:55 +00:00
source=(https://github.com/dvdhrm/xwiimote/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.xz)
#source=($pkgname-$pkgver.tar.xz)
md5sums=('763f2c1acedfea9c8cee448a674efb76')
2013-02-21 20:55:52 +00:00
build() {
cd "$srcdir/$pkgname-$pkgver"
2013-08-13 01:17:55 +00:00
./configure --prefix=/usr --with-doxygen=no
2013-02-21 20:55:52 +00:00
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
mkdir -p "$pkgdir/usr/share/licenses/$pkgname/"
cp LICENSE "$pkgdir/usr/share/licenses/$pkgname/"
mkdir -p "$pkgdir/etc/X11/xorg.conf.d/"
cp "res/50-xorg-fix-xwiimote.conf" "$pkgdir/etc/X11/xorg.conf.d/50-fix-xwiimote.conf"
make DESTDIR="$pkgdir/" install
}