csync-git
[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.6h
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=('23f82ceb3ba4433cbd56120ba19fd80e'
20 '257bdd8b14f71aebbb60f80dc562fa33')
21
22 build() {
23 true
24 }
25
26 package() {
27 cd ${srcdir}/
28
29 install -d ${pkgdir}/usr/share/java/$pkgname
30 rm -rf "${srcdir}/${pkgname}.zip"
31 cp -rf ${srcdir}/* ${pkgdir}/usr/share/java/$pkgname/
32
33 #.desktop + icon files
34 install -D -m644 ${srcdir}/$pkgname.desktop \
35 ${pkgdir}/usr/share/applications/$pkgname.desktop
36 mkdir -p ${pkgdir}/usr/share/pixmaps/
37 convert ${srcdir}/favicon.ico ${pkgdir}/usr/share/pixmaps/$pkgname.png
38
39 #executable file
40 install -d ${pkgdir}/usr/bin
41 cat > ${pkgdir}/usr/bin/$pkgname << EOF
42 #!/bin/sh
43 ( cd /usr/share/java/$pkgname/
44 java -jar $pkgname.jar \$@
45 )
46 EOF
47
48 chmod 775 ${pkgdir}/usr/bin/$pkgname
49 }
This page took 0.484748 seconds and 5 git commands to generate.