updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / circuit / PKGBUILD
blobda38adbfa312bae42612ec61b681f67de201b028
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/
5 pkgname=circuit
6 pkgver=1.5n
7 pkgrel=1
8 pkgdesc='Electronic circuit simulator written in Java by falstad.com'
9 arch=('any')
10 url="http://www.falstad.com/circuit/"
11 license=('GPL')
12 depends=('java-runtime' 'desktop-file-utils')
13 makedepends=('imagemagick')
14 source=(
15         "http://www.falstad.com/$pkgname/$pkgname.zip"
16         $pkgname.desktop
19 md5sums=('3e832a82058d7ca2c7adca6a7abf694b'
20          '257bdd8b14f71aebbb60f80dc562fa33')
22 build() {
23         cd ${srcdir}/
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
35 #executable file
36         install -d ${pkgdir}/usr/bin
37         cat > ${pkgdir}/usr/bin/$pkgname << EOF
38 #!/bin/sh
39 ( cd /usr/share/java/$pkgname/
40         java -jar $pkgname.jar
42 EOF
44         chmod 775 ${pkgdir}/usr/bin/$pkgname