--- /dev/null
+# Contributor: Thomas Mudrunka <harvie@@email..cz>
+# Maintainer: Thomas Mudrunka <harvie@@email..cz>
+# You can also contact me on http://blog.harvie.cz/
+
+pkgname=circuit
+pkgver=1.5n
+pkgrel=1
+pkgdesc='Electronic circuit simulator written in Java by falstad.com'
+arch=('any')
+url="http://www.falstad.com/circuit/"
+license=('GPL')
+depends=('java-runtime' 'desktop-file-utils')
+makedepends=('imagemagick')
+source=(
+ "http://www.falstad.com/$pkgname/$pkgname.zip"
+ $pkgname.desktop
+)
+
+md5sums=('3e832a82058d7ca2c7adca6a7abf694b'
+ '257bdd8b14f71aebbb60f80dc562fa33')
+
+build() {
+ cd ${srcdir}/
+
+ install -d ${pkgdir}/usr/share/java/$pkgname
+ rm -rf "${srcdir}/${pkgname}.zip"
+ cp -rf ${srcdir}/* ${pkgdir}/usr/share/java/$pkgname/
+
+#.desktop + icon files
+ install -D -m644 ${srcdir}/$pkgname.desktop \
+ ${pkgdir}/usr/share/applications/$pkgname.desktop
+ mkdir -p ${pkgdir}/usr/share/pixmaps/
+ convert ${srcdir}/favicon.ico ${pkgdir}/usr/share/pixmaps/$pkgname.png
+
+#executable file
+ install -d ${pkgdir}/usr/bin
+ cat > ${pkgdir}/usr/bin/$pkgname << EOF
+#!/bin/sh
+( cd /usr/share/java/$pkgname/
+ java -jar $pkgname.jar
+)
+EOF
+
+ chmod 775 ${pkgdir}/usr/bin/$pkgname
+}