2 # Maintainer: Dany Martineau <dany.luc.martineau at gmail.com>
4 pkgname=wiimotewhiteboard
7 url="http://www.uweschmidt.org/wiimote-whiteboard"
8 pkgdesc="Allows you to use the Wii Remote (Wiimote) to turn any surface into a Low-Cost Interactive Whiteboard."
11 depends=('java-runtime' 'bluez')
13 source=(http://www.uweschmidt.org/files/WiimoteWhiteboard.zip \
14 http://bluecove.googlecode.com/files/bluecove-gpl-2.1.0.jar wiimotewhiteboard.desktop)
15 md5sums=('5e098dcb3112fa416d221ccd13379485'
16 '78304a5e7f8913d561b67ff9d17ef4de'
17 'b7490a3ca49253a63fcee1dd2ecf35e6')
20 cd ${srcdir}/WiimoteWhiteboard
22 cp ../bluecove-gpl-2.1.0.jar lib/
23 zip WiimoteWhiteboard.jar lib/bluecove-gpl-2.1.0.jar
24 mkdir -p ${pkgdir}/usr/share/wiimotewhiteboard
25 mkdir -p ${pkgdir}/usr/bin
26 cp -R * ${pkgdir}/usr/share/wiimotewhiteboard
27 echo "#!/bin/bash" >> wiimotewb.sh
28 echo "cd /usr/share/wiimotewhiteboard" >> wiimotewb.sh
29 echo "./WiimoteWhiteboard.sh" >> wiimotewb.sh
30 install -m 755 wiimotewb.sh ${pkgdir}/usr/bin/
31 install -Dm755 $srcdir/wiimotewhiteboard.desktop \
32 $pkgdir/usr/share/applications/wiimotewhiteboard.desktop || return 1