diff options
author | root <root@rshg054.dnsready.net> | 2011-08-11 23:14:30 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-11 23:14:30 +0000 |
commit | 853acffdfdaafc5b2982cbac2a0e5adda28e6d6e (patch) | |
tree | ec8f471de81a4c58c3b2cc228009524ae31f312f /community/cwiid | |
parent | 1a6b0f4a655e1fbda776cbb34f56a5fa061c27c7 (diff) |
Thu Aug 11 23:14:30 UTC 2011
Diffstat (limited to 'community/cwiid')
-rw-r--r-- | community/cwiid/PKGBUILD | 43 | ||||
-rw-r--r-- | community/cwiid/bluez4.patch | 11 | ||||
-rw-r--r-- | community/cwiid/cwiid.install | 10 |
3 files changed, 64 insertions, 0 deletions
diff --git a/community/cwiid/PKGBUILD b/community/cwiid/PKGBUILD new file mode 100644 index 000000000..8f928328a --- /dev/null +++ b/community/cwiid/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 53971 2011-08-10 19:27:06Z schiv $ +# Maintainer: Ray Rashif <schiv@archlinux.org> +# Contributor: Wieland Hoffmann <the_mineo@web.de> +# Contributor: Birger Moellering <bmoellering@googlemail.com> + +pkgname=cwiid +pkgver=0.6.00 +pkgrel=9 +pkgdesc="Linux Nintendo Wiimote interface" +arch=('i686' 'x86_64') +url="http://abstrakraft.org/cwiid" +depends=('bluez' 'gtk2' 'python2') +makedepends=('flex' 'bison') +license=('GPL') +install=cwiid.install +source=("http://abstrakraft.org/cwiid/downloads/$pkgname-$pkgver.tgz" + 'bluez4.patch') +md5sums=('8d574afdeedc5e5309c87a72d744316a' + '19b288723d1f2b97a3e5288ab9de3313') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # bluez v4 compatibility + patch -Np1 -i "$srcdir/bluez4.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 + + chmod 644 "$pkgdir/usr/lib/libcwiid.a" +} + +# vim:set ts=2 sw=2 et: diff --git a/community/cwiid/bluez4.patch b/community/cwiid/bluez4.patch new file mode 100644 index 000000000..dbbc790c5 --- /dev/null +++ b/community/cwiid/bluez4.patch @@ -0,0 +1,11 @@ +--- cwiid-0.6.00.orig/libcwiid/bluetooth.c.old 2008-09-30 16:52:55.000000000 -0500 ++++ cwiid-0.6.00.orig/libcwiid/bluetooth.c 2008-09-30 16:53:19.000000000 -0500 +@@ -122,7 +122,7 @@ + } + + /* timeout (10000) in milliseconds */ +- if (hci_remote_name(sock, &dev_list[i].bdaddr, BT_NAME_LEN, ++ if (hci_read_remote_name(sock, &dev_list[i].bdaddr, BT_NAME_LEN, + (*bdinfo)[bdinfo_count].name, 10000)) { + cwiid_err(NULL, "Bluetooth name read error"); + err = 1; 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: |