1 # Contributor: fnord0 < fnord0 AT riseup DOT net >
7 pkgdesc="a simple cross-platform Java applet that interacts with the AlienFX device on Alienware laptops and computers - create profiles, set the AlienFX lightning, and colors. Tested on Alienware m11x, m15x, and m17x."
9 url="http://forum.notebookreview.com/alienware/458528-alienfx-lite-linux-windows-alienfx-tool.html"
11 depends=('jre' 'libusb')
12 source=("http://progger.co.uk/alienfx/AlienFXLite-0.4b.jar")
13 md5sums=('d4366d28a9a8ce1f7b6d84a4f1710dca')
14 sha1sums=('8aba18a39e7bf5c2b1b2a08db85f7c66f5d1e4b0')
17 install -d ${pkgdir}/usr/share/${_pkgname} || return 1
18 install -d ${pkgdir}/usr/bin || return 1
19 install -Dm755 ${startdir}/AlienFXLite-0.4b.jar ${pkgdir}/usr/share/${_pkgname} || return 1
22 echo "#!/bin/sh" > ${pkgdir}/usr/bin/${_pkgname}
23 echo "cd /usr/share/alienFX-lite" >> ${pkgdir}/usr/bin/${_pkgname}
24 echo "sudo \$JAVA_HOME/bin/java" -jar '/usr/share/alienFX-lite/AlienFXLite-0.4b.jar' >> ${pkgdir}/usr/bin/${_pkgname}
25 echo "cd -" >> ${pkgdir}/usr/bin/${_pkgname}
26 chmod +x ${pkgdir}/usr/bin/${_pkgname}