From: Harvie Date: Sun, 2 Jan 2011 08:28:18 +0000 (+0100) Subject: Added circuit simulator X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=8ce8ae47b0fd56dc8042c2b114d6e87b51553e02;p=mirrors%2FArchLinux-Packages.git Added circuit simulator --- diff --git a/circuit-simulator/PKGBUILD b/circuit-simulator/PKGBUILD new file mode 100644 index 0000000..da38adb --- /dev/null +++ b/circuit-simulator/PKGBUILD @@ -0,0 +1,45 @@ +# Contributor: Thomas Mudrunka +# Maintainer: Thomas Mudrunka +# 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 +} diff --git a/circuit-simulator/circuit.desktop b/circuit-simulator/circuit.desktop new file mode 100644 index 0000000..7876988 --- /dev/null +++ b/circuit-simulator/circuit.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Categories=Education;Science;Java; +Exec=circuit +Icon=circuit +Terminal=false +Type=Application +Name=Circuit Simulator +GenericName=Circuit Simulator