1 # Contributor: Thomas Mudrunka <harvie@@email..cz>
2 # You can also contact me on http://blog.harvie.cz/
7 pkgdesc="Free Terragen-like terrain generator and (monte-carlo method) ray tracer"
10 url="http://picogen.org/"
11 depends=('libnoise') #libtiff
14 source=("http://picogen.googlecode.com/files/${pkgname}-${pkgver}-${_pkgarch}.tar.gz")
15 md5sums=('ffb1fc0653cb85b214d8e099574310ad')
18 mkdir -p "${pkgdir}/opt/picogen/"
19 mkdir -p "${pkgdir}/usr/bin/"
20 mkdir -p "${pkgdir}/usr/lib/"
24 cp -r * "${pkgdir}/opt/picogen/" || return 1
25 strip "${pkgdir}/opt/picogen/"* 2>/dev/null || true
27 cd "${pkgdir}/opt/picogen/"
28 ln -s "/opt/picogen/picohelp" "${pkgdir}/usr/bin/picogen-help"
29 for i in picogen-pure picogen-simplex picogen-quatsch-editor; do
30 ln -s "/opt/picogen/${i}" "${pkgdir}/usr/bin/${i}" || return 1
31 cat ${i} | sed -e 's/libnoise.so.0/libnoise.so\x00\x00/g' > ${i}.fix
35 chmod -R 755 "${pkgdir}/opt/picogen/"
38 mkdir -p ${pkgdir}/usr/share/applications
43 GenericName=PicoGen Simplex
44 Comment=Terragen-like terrain generator
45 Exec=/usr/bin/picogen-simplex
46 Icon=/opt/picogen/icons/simplexgui.png
50 Categories=Graphics;3DGraphics;RasterGraphics;" > ${pkgdir}/usr/share/applications/picogen-simplex.desktop
54 Name=PicoGen Quatsch Editor
55 GenericName=PicoGen Quatsch Editor
56 Comment=Terragen-like terrain generator
57 Exec=/usr/bin/picogen-quatsch-editor
58 Icon=/opt/picogen/icons/quatsch-editor.png
62 Categories=Graphics;3DGraphics;RasterGraphics;" > ${pkgdir}/usr/share/applications/picogen-quatsch-editor.desktop