From 63bd66056e59c02a988bf17876bd72e27bb4dc8b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 Jun 2012 19:39:26 +0000 Subject: Fri Jun 8 19:39:26 UTC 2012 --- community/cwiid/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++ community/cwiid/cwiid.install | 10 +++++++++ 2 files changed, 59 insertions(+) create mode 100644 community/cwiid/PKGBUILD create mode 100644 community/cwiid/cwiid.install (limited to 'community/cwiid') diff --git a/community/cwiid/PKGBUILD b/community/cwiid/PKGBUILD new file mode 100644 index 000000000..a98abf2e5 --- /dev/null +++ b/community/cwiid/PKGBUILD @@ -0,0 +1,49 @@ +# $Id: PKGBUILD 72056 2012-06-07 14:10:17Z speps $ +# Maintainer : speps +# Contributor: Ray Rashif +# Contributor: Wieland Hoffmann +# Contributor: Birger Moellering +# 2012/03/21 : +# 2012/06/05 : + +pkgname=cwiid +pkgver=0.6.00 +pkgrel=12 +pkgdesc="Linux Nintendo Wiimote interface" +arch=('i686' 'x86_64') +url="http://abstrakraft.org/cwiid" +depends=('bluez' 'gtk2') +license=('GPL') +install="$pkgname.install" +source=("$url/downloads/$pkgname-$pkgver.tgz" + "$url/raw-attachment/ticket/70/bluez_4_api_changes.patch") +md5sums=('8d574afdeedc5e5309c87a72d744316a' + '19b288723d1f2b97a3e5288ab9de3313') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # bluez v4 compatibility + patch -Np1 -i "$srcdir/bluez_4_api_changes.patch" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-ldconfig \ + --with-python=python2 + + LDFLAGS+="$(pkg-config --libs bluez) -lrt -pthread" make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + + # fix static lib permissions + chmod 644 "$pkgdir/usr/lib/libcwiid.a" + + # wminput README + install -Dm644 wminput/README \ + "$pkgdir/usr/share/doc/$pkgname/wminput/README" +} + +# vim:set ts=2 sw=2 et: diff --git a/community/cwiid/cwiid.install b/community/cwiid/cwiid.install new file mode 100644 index 000000000..05e698be7 --- /dev/null +++ b/community/cwiid/cwiid.install @@ -0,0 +1,10 @@ +post_install() { + echo "==> In order to use wminput ensure you load the uinput kernel" + echo "==> module and have assigned correct access to /dev/uinput" +} + +post_upgrade() { + post_install +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf