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=('3e832a82058d7ca2c7adca6a7abf694b'
20 '257bdd8b14f71aebbb60f80dc562fa33')
25 install -d ${pkgdir}/usr/share/java/$pkgname
26 rm -rf "${srcdir}/${pkgname}.zip"
27 cp -rf ${srcdir}/* ${pkgdir}/usr/share/java/$pkgname/
29 #.desktop + icon files
30 install -D -m644 ${srcdir}/$pkgname.desktop \
31 ${pkgdir}/usr/share/applications/$pkgname.desktop
32 mkdir -p ${pkgdir}/usr/share/pixmaps/
33 convert ${srcdir}/favicon.ico ${pkgdir}/usr/share/pixmaps/$pkgname.png
36 install -d ${pkgdir}/usr/bin
37 cat > ${pkgdir}/usr/bin/$pkgname << EOF
39 ( cd /usr/share/java/$pkgname/
40 java -jar $pkgname.jar
44 chmod 775 ${pkgdir}/usr/bin/$pkgname