1 #Contributor:Andrea Tarocchi <valdar@email.it>
5 pkgdesc="It is a library written in C that connects with several Nintendo Wii remotes."
7 url="http://wiiuse.sourceforge.net/"
10 install=wiiuse.install
12 source=("http://downloads.sourceforge.net/sourceforge/wiiuse/wiiuse_v${pkgver}_src.tar.gz"
15 md5sums=('29b555096f79dbd3fbc9b96b8d443083'
16 '0066fc932c2cbd7f493d88163c05b1d5')
19 cd $startdir/src/wiiuse_v$pkgver/src
20 patch -Nup0 < $srcdir/io_nix.patch || return 1
21 # patch -Np0 -i $srcdir/io_nix.patch || return 1
22 cd $startdir/src/wiiuse_v$pkgver
23 make wiiuse || return 1
26 mkdir -p $startdir/pkg/usr/lib
27 mkdir -p $startdir/pkg/usr/include
29 install -D -m644 ./src/release-`gcc -v 2>&1|grep ^Target:|cut -d' ' -f2`/libwiiuse.so $startdir/pkg/usr/lib
30 install -D -m644 ./src/wiiuse.h $startdir/pkg/usr/include