Added circuit simulator
authorHarvie <tomas@mudrunka.cz>
Sun, 2 Jan 2011 08:28:18 +0000 (09:28 +0100)
committerHarvie <tomas@mudrunka.cz>
Sun, 2 Jan 2011 08:28:18 +0000 (09:28 +0100)
circuit-simulator/PKGBUILD [new file with mode: 0644]
circuit-simulator/circuit.desktop [new file with mode: 0644]

diff --git a/circuit-simulator/PKGBUILD b/circuit-simulator/PKGBUILD
new file mode 100644 (file)
index 0000000..da38adb
--- /dev/null
@@ -0,0 +1,45 @@
+# 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
+}
diff --git a/circuit-simulator/circuit.desktop b/circuit-simulator/circuit.desktop
new file mode 100644 (file)
index 0000000..7876988
--- /dev/null
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Categories=Education;Science;Java;
+Exec=circuit
+Icon=circuit
+Terminal=false
+Type=Application
+Name=Circuit Simulator
+GenericName=Circuit Simulator
This page took 0.259974 seconds and 4 git commands to generate.