Added some reprap packages
[mirrors/ArchLinux-Packages.git] / circuit-simulator / PKGBUILD
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/
4
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
17 )
18
19 md5sums=('3e832a82058d7ca2c7adca6a7abf694b'
20 '257bdd8b14f71aebbb60f80dc562fa33')
21
22 build() {
23 cd ${srcdir}/
24
25 install -d ${pkgdir}/usr/share/java/$pkgname
26 rm -rf "${srcdir}/${pkgname}.zip"
27 cp -rf ${srcdir}/* ${pkgdir}/usr/share/java/$pkgname/
28
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
34
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
41 )
42 EOF
43
44 chmod 775 ${pkgdir}/usr/bin/$pkgname
45 }
This page took 0.262566 seconds and 4 git commands to generate.