1 # Maintainer: Kyle Keen <keenerd@gmail.com>
2 # Contributor: Adrian Carpenter <adriatic.c@gmail.com>
6 pkgdesc="Graphics tool for creating 3D structures from a set of rules, similar to Context Free."
8 url="http://structuresynth.sourceforge.net"
12 source=("http://downloads.sourceforge.net/structuresynth/StructureSynth-Source-v${pkgver}.zip" \
13 "structuresynth.install")
14 md5sums=('862705c5bc9e778094046399f44d6c26'
15 '27ce406752eb6d05e326fbae72553cf1')
16 install=${pkgname}.install
19 cd "$srcdir/Structure Synth Source Code/"
21 _patches=("s|loose|lose|"
22 "s|\.\./\.\./Misc|/usr/share/${pkgname}/Misc|"
23 "s|\.\./\.\./Examples|/usr/share/${pkgname}/Examples|")
24 for _i in "${_patches[@]}"; do
26 sed -ie "${_i}" StructureSynth/GUI/MainWindow.cpp
29 qmake -project -after "CONFIG+=opengl" -after "QT+=xml opengl script"
33 mkdir -p "${pkgdir}/usr/share/applications"
34 cp structure-synth.desktop "${pkgdir}/usr/share/applications"
35 mkdir -p "${pkgdir}/usr/share/icons"
36 cp images/fileicons/StructureSynth-256.png "${pkgdir}/usr/share/icons/structure-synth.png"
38 mkdir -p "${pkgdir}/usr/share/${pkgname}"
39 cp -rv Examples Misc "${pkgdir}/usr/share/${pkgname}"
40 #rm -r "${pkgdir}/usr/share/${pkgname}/Examples/DontDeploy"
41 chmod -R 0644 "${pkgdir}/usr/share/${pkgname}"
42 chmod 0755 "${pkgdir}/usr/share/${pkgname}"
43 chmod 0755 "${pkgdir}/usr/share/${pkgname}/Examples"
44 chmod 0755 "${pkgdir}/usr/share/${pkgname}/Examples/Tutorials"
45 chmod 0755 "${pkgdir}/usr/share/${pkgname}/Misc"
46 install -D -m0755 "Structure Synth Source Code" "${pkgdir}/usr/bin/structure-synth"
49 # vim:set ts=2 sw=2 et: