summaryrefslogtreecommitdiff
path: root/community/cwiid/PKGBUILD
blob: ec59807bb3b6df2be33aeb2b409954e8b99d55d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $Id: PKGBUILD 63522 2012-02-05 11:53:14Z ibiru $
# 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=10
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: