1 # Contributor: Thomas Mudrunka <harvie@@email..cz>
2 # Maintainer: Thomas Mudrunka <harvie@@email..cz>
3 # You can also contact me on http://blog.harvie.cz/
8 pkgdesc='Electronic circuit simulator written in Java by falstad.com'
10 url="http://www.falstad.com/circuit/"
12 depends=('java-runtime' 'desktop-file-utils')
13 makedepends=('imagemagick')
15 "http://www.falstad.com/$pkgname/$pkgname.zip"
19 md5sums=('23f82ceb3ba4433cbd56120ba19fd80e'
20 '257bdd8b14f71aebbb60f80dc562fa33')
29 install -d ${pkgdir}/usr/share/java/$pkgname
30 rm -rf "${srcdir}/${pkgname}.zip"
31 cp -rf ${srcdir}/* ${pkgdir}/usr/share/java/$pkgname/
33 #.desktop + icon files
34 install -D -m644 ${srcdir}/$pkgname.desktop \
35 ${pkgdir}/usr/share/applications/$pkgname.desktop
36 mkdir -p ${pkgdir}/usr/share/pixmaps/
37 convert ${srcdir}/favicon.ico ${pkgdir}/usr/share/pixmaps/$pkgname.png
40 install -d ${pkgdir}/usr/bin
41 cat > ${pkgdir}/usr/bin/$pkgname << EOF
43 ( cd /usr/share/java/$pkgname/
44 java -jar $pkgname.jar \$@
48 chmod 775 ${pkgdir}/usr/bin/$pkgname