summaryrefslogtreecommitdiffstats
path: root/abs/extra/wiiuse
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-01 18:06:35 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-01 18:06:35 (GMT)
commit77307464f5b324bd8b7ec463482be79c5ebbaff6 (patch)
tree17307a0b78c59a2cef7815e8c531a028aa2a3ade /abs/extra/wiiuse
parenta80673e5ddf82ef739baa9782c9d062df0da9182 (diff)
downloadlinhes_pkgbuild-77307464f5b324bd8b7ec463482be79c5ebbaff6.zip
linhes_pkgbuild-77307464f5b324bd8b7ec463482be79c5ebbaff6.tar.gz
linhes_pkgbuild-77307464f5b324bd8b7ec463482be79c5ebbaff6.tar.bz2
moved from community to openal, because non-community things depend on them:
nvidia-cg-toolkit openal opencl-head wiiuse
Diffstat (limited to 'abs/extra/wiiuse')
-rw-r--r--abs/extra/wiiuse/PKGBUILD26
-rw-r--r--abs/extra/wiiuse/wiiuse.install17
2 files changed, 43 insertions, 0 deletions
diff --git a/abs/extra/wiiuse/PKGBUILD b/abs/extra/wiiuse/PKGBUILD
new file mode 100644
index 0000000..d8b1e2b
--- /dev/null
+++ b/abs/extra/wiiuse/PKGBUILD
@@ -0,0 +1,26 @@
+#Contributor:Andrea Tarocchi <valdar@email.it>
+pkgname=wiiuse
+pkgver=0.12
+pkgrel=2
+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)
+
+md5sums=('29b555096f79dbd3fbc9b96b8d443083')
+
+build() {
+ 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 --git a/abs/extra/wiiuse/wiiuse.install b/abs/extra/wiiuse/wiiuse.install
new file mode 100644
index 0000000..d856696
--- /dev/null
+++ b/abs/extra/wiiuse/wiiuse.install
@@ -0,0 +1,17 @@
+# 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