csync-git
[mirrors/ArchLinux-Packages.git] / picogen / PKGBUILD
1 # Contributor: Thomas Mudrunka <harvie@@email..cz>
2 # You can also contact me on http://blog.harvie.cz/
3
4 pkgname=picogen
5 pkgver=0.3
6 pkgrel=1
7 pkgdesc="Free Terragen-like terrain generator and (monte-carlo method) ray tracer"
8 arch=(i686) #x86_64)
9 license=('GPL')
10 url="http://picogen.org/"
11 depends=('libnoise') #libtiff
12
13 _pkgarch=i386;
14 source=("http://picogen.googlecode.com/files/${pkgname}-${pkgver}-${_pkgarch}.tar.gz")
15 md5sums=('ffb1fc0653cb85b214d8e099574310ad')
16
17 build() {
18 mkdir -p "${pkgdir}/opt/picogen/"
19 mkdir -p "${pkgdir}/usr/bin/"
20 mkdir -p "${pkgdir}/usr/lib/"
21
22 cd ${srcdir}
23 rm *.tar.gz
24 cp -r * "${pkgdir}/opt/picogen/" || return 1
25 strip "${pkgdir}/opt/picogen/"* 2>/dev/null || true
26
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
32 mv -f ${i}.fix ${i}
33 done;
34
35 chmod -R 755 "${pkgdir}/opt/picogen/"
36
37 #Desktop Launcher
38 mkdir -p ${pkgdir}/usr/share/applications
39
40 echo "[Desktop Entry]
41 Encoding=UTF-8
42 Name=PicoGen Simplex
43 GenericName=PicoGen Simplex
44 Comment=Terragen-like terrain generator
45 Exec=/usr/bin/picogen-simplex
46 Icon=/opt/picogen/icons/simplexgui.png
47 StartupNotify=true
48 Terminal=false
49 Type=Application
50 Categories=Graphics;3DGraphics;RasterGraphics;" > ${pkgdir}/usr/share/applications/picogen-simplex.desktop
51
52 echo "[Desktop Entry]
53 Encoding=UTF-8
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
59 StartupNotify=true
60 Terminal=false
61 Type=Application
62 Categories=Graphics;3DGraphics;RasterGraphics;" > ${pkgdir}/usr/share/applications/picogen-quatsch-editor.desktop
63
64 }
This page took 0.363222 seconds and 4 git commands to generate.