Commit eed3d238 authored by Giuseppe Calà's avatar Giuseppe Calà

Added new package: Wiiuse, version 0.12

parent 090b7799
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=wiiuse
pkgver=0.12
pkgrel=1
pkgdesc="Wiiuse is a library written in C that connects with several Nintendo Wii remotes."
arch=(i686 x86_64)
url="http://wiiuse.sourceforge.net/"
depends=('bluez')
license="GPL3"
install=wiiuse.install
postfix=_src.tar.gz
source=("http://downloads.sourceforge.net/sourceforge/wiiuse/wiiuse_v${pkgver}_src.tar.gz"
"io_nix.patch")
md5sums=('29b555096f79dbd3fbc9b96b8d443083'
'b5b6340306ec7194f47dfdf842531b34')
build() {
patch -Np0 -i $srcdir/io_nix.patch || return 1
cd $startdir/src/wiiuse_v$pkgver
make wiiuse || return 1
#installing
mkdir -p $startdir/pkg/usr/lib
mkdir -p $startdir/pkg/usr/include
install -D -m644 ./src/release-`gcc -v 2>&1|grep ^Target:|cut -d' ' -f2`/libwiiuse.so $startdir/pkg/usr/lib
install -D -m644 ./src/wiiuse.h $startdir/pkg/usr/include
}
diff -Naur wiiuse_v0.12.orig/src/io_nix.c wiiuse_v0.12/src/io_nix.c
--- wiiuse_v0.12.orig/src/io_nix.c 2008-03-29 21:53:32.000000000 +0000
+++ wiiuse_v0.12/src/io_nix.c 2010-11-15 10:11:46.779999704 +0000
@@ -170,6 +170,7 @@
*/
static int wiiuse_connect_single(struct wiimote_t* wm, char* address) {
struct sockaddr_l2 addr;
+ memset(&addr, 0, sizeof (addr));
if (!wm || WIIMOTE_IS_CONNECTED(wm))
return 0;
# arg 1: the new package version
post_install() {
cat << EOF
Note:
==> for using this lib in your projects include wiiuse.h and link against libwiiuse.so
EOF
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
}
op=$1
shift
$op $*
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment