diff options
Diffstat (limited to 'community/cwiid')
-rw-r--r-- | community/cwiid/PKGBUILD | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/community/cwiid/PKGBUILD b/community/cwiid/PKGBUILD index 096e78afd..90aaf9dc2 100644 --- a/community/cwiid/PKGBUILD +++ b/community/cwiid/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 92496 2013-06-07 09:28:55Z tomegun $ +# $Id: PKGBUILD 99065 2013-10-23 22:02:55Z speps $ # Maintainer : speps <speps at aur dot archlinux dot org> # Contributor: Ray Rashif <schiv@archlinux.org> # Contributor: Wieland Hoffmann <the_mineo@web.de> @@ -7,41 +7,39 @@ # 2012/06/05 : <added into community as supercollider dependency> pkgname=cwiid -pkgver=0.6.00 -pkgrel=13 +pkgver=0.6.00+svn201 +pkgrel=1 pkgdesc="Linux Nintendo Wiimote interface" arch=('i686' 'x86_64' 'mips64el') url="http://abstrakraft.org/cwiid" depends=('bluez-libs' 'gtk2' 'python2') -makedepends=('python2') license=('GPL') install="$pkgname.install" -source=("$url/downloads/$pkgname-$pkgver.tgz" - "$url/raw-attachment/ticket/70/bluez_4_api_changes.patch") -md5sums=('8d574afdeedc5e5309c87a72d744316a' - '19b288723d1f2b97a3e5288ab9de3313') +source=("https://github.com/abstrakraft/cwiid/archive/svn_history.tar.gz") +md5sums=('e1bc290504dc53f02581866eed0b85c3') + +prepare() { + cd $pkgname-svn_history + sed -i '/ldconfig/s/WITH/ENABLE/' configure.ac + aclocal + autoconf -f +} build() { - cd "$srcdir/$pkgname-$pkgver" - - # bluez v4 compatibility - patch -Np1 -i "$srcdir/bluez_4_api_changes.patch" - + cd $pkgname-svn_history ./configure --prefix=/usr \ --sysconfdir=/etc \ - --disable-ldconfig \ - --with-python=python2 + --with-python=python2 \ + --enable-ldconfig=no - LDFLAGS+="$(pkg-config --libs bluez) -lrt -pthread" make + LDFLAGS+="$(pkg-config --libs bluez) -lpthread" \ + make } package() { - cd "$srcdir/$pkgname-$pkgver" + cd $pkgname-svn_history 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" |