updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / structorizer / PKGBUILD
blob18cdbfb9b99ec7d89871e33a02143d67599071d9
1 # Maintainer: Thorsten Töpper <atsutane-aur@freethoughts.de>
3 pkgname=structorizer
4 pkgver=3.21
5 _pkgver=3_21
6 pkgrel=1
7 pkgdesc="A little tool which you can use to create Nassi-Schneiderman Diagrams (NSD)"
8 arch=('any')
9 url="http://structorizer.fisch.lu/"
10 license=('custom')
11 depends=('java-runtime' 'sh')
12 install=("structorizer.install")
13 source=("${pkgname}-${pkgver}.zip::http://www.fisch.lu/Php/download.php?file=${pkgname}_${_pkgver}.zip")
14 md5sums=('048c4f4e4196d64c6f7f066a220048da')
16 build() {
17   echo -n '#!/bin/sh
18 cd /usr/share/java/structorizer || return 1
19 java -jar Structorizer.jar Structorizer' > ${srcdir}/structorizer
22 package() {
23   # Binaries
24   install -Dm755 \
25     ${srcdir}/Structorizer/Structorizer.app/Contents/Resources/Java/Structorizer.jar \
26     ${pkgdir}/usr/share/java/${pkgname}/Structorizer.jar
27   install -Dm755 \
28     ${srcdir}/Structorizer/Structorizer.app/Contents/Resources/Java/lib/AppleJavaExtensions.jar \
29     ${pkgdir}/usr/share/java/${pkgname}/lib/AppleJavaExtensions.jar
30   install -Dm755 \
31     ${srcdir}/Structorizer/Structorizer.app/Contents/Resources/Java/lib/bsh-2.0b4.jar \
32     ${pkgdir}/usr/share/java/${pkgname}/lib/bsh-2.0b4.jar
33   install -Dm755 \
34     ${srcdir}/Structorizer/Structorizer.app/Contents/Resources/Java/lib/freehep-graphics2d-2.1.1.jar \
35     ${pkgdir}/usr/share/java/${pkgname}/lib/freehep-graphics2d-2.1.1.jar
36   install -Dm755 \
37     ${srcdir}/Structorizer/Structorizer.app/Contents/Resources/Java/lib/freehep-graphicsio-2.1.1.jar \
38     ${pkgdir}/usr/share/java/${pkgname}/lib/freehep-graphicsio-2.1.1.jar
39   install -Dm755 \
40     ${srcdir}/Structorizer/Structorizer.app/Contents/Resources/Java/lib/freehep-io-2.0.2.jar \
41     ${pkgdir}/usr/share/java/${pkgname}/lib/freehep-io-2.0.2.jar
42   install -Dm755 \
43     ${srcdir}/Structorizer/Structorizer.app/Contents/Resources/Java/lib/freehep-graphicsio-svg-2.1.1.jar \
44     ${pkgdir}/usr/share/java/${pkgname}/lib/freehep-graphicsio-svg-2.1.1.jar
45   install -Dm755 \
46     ${srcdir}/Structorizer/Structorizer.app/Contents/Resources/Java/lib/freehep-swing-2.0.3.jar \
47     ${pkgdir}/usr/share/java/${pkgname}/lib/freehep-swing-2.0.3.jar
48   install -Dm755 \
49     ${srcdir}/Structorizer/Structorizer.app/Contents/Resources/Java/lib/freehep-util-2.0.2.jar \
50     ${pkgdir}/usr/share/java/${pkgname}/lib/freehep-util-2.0.2.jar
51   install -Dm755 \
52     ${srcdir}/Structorizer/Structorizer.app/Contents/Resources/Java/lib/freehep.jar \
53     ${pkgdir}/usr/share/java/${pkgname}/lib/freehep.jar
54   install -Dm755 \
55     ${srcdir}/Structorizer/Structorizer.app/Contents/Resources/Java/lib/swing-layout-1.0.3.jar \
56     ${pkgdir}/usr/share/java/${pkgname}/lib/swing-layout-1.0.3.jar
57   
58   # Script and license
59   install -Dm755 \
60     ${srcdir}/structorizer \
61     ${pkgdir}/usr/bin/structorizer
62   install -Dm 644 \
63     ${srcdir}/Structorizer/license.txt \
64     ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
67 # vim:set ts=2 sw=2 et: