updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / structuresynth / PKGBUILD
blobde7d8e43c7e7348e89e0e25856a1524586072413
1 # Maintainer: Kyle Keen <keenerd@gmail.com>
2 # Contributor: Adrian Carpenter <adriatic.c@gmail.com>
3 pkgname=structuresynth
4 pkgver=1.5.0
5 pkgrel=3
6 pkgdesc="Graphics tool for creating 3D structures from a set of rules, similar to Context Free."
7 arch=('i686' 'x86_64')
8 url="http://structuresynth.sourceforge.net"
9 license=('GPL')
10 depends=('qt>=4.5')
11 makedepends=()
12 source=("http://downloads.sourceforge.net/structuresynth/StructureSynth-Source-v${pkgver}.zip" \
13         "structuresynth.install")
14 md5sums=('862705c5bc9e778094046399f44d6c26'
15          '27ce406752eb6d05e326fbae72553cf1')
16 install=${pkgname}.install
18 build() {
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
25     echo "${_i}"
26     sed -ie "${_i}" StructureSynth/GUI/MainWindow.cpp
27   done
29   qmake -project -after "CONFIG+=opengl" -after "QT+=xml opengl script"
30   qmake
31   make
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: