updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wiimotewhiteboard / PKGBUILD
blob97c50e04c27340b8415dffc184b94f49413b4913
2 # Maintainer: Dany Martineau <dany.luc.martineau at gmail.com>
4 pkgname=wiimotewhiteboard  
5 pkgver=1.0.3
6 pkgrel=1
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."
9 arch=('any')
10 license=('GPL')
11 depends=('java-runtime' 'bluez')
12 makedepends=('zip')
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')
19 build() {
20         cd ${srcdir}/WiimoteWhiteboard
21         mkdir lib
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
33         rm -fR lib
34