New version of picogen - 32b binary only; patches welcome
authorHarvie <tomas@mudrunka.cz>
Mon, 23 Aug 2010 22:48:34 +0000 (00:48 +0200)
committerHarvie <tomas@mudrunka.cz>
Mon, 23 Aug 2010 22:48:34 +0000 (00:48 +0200)
picogen/PKGBUILD

index 336c8aa55819111cc6f3b827ad15135f3b686b59..7a2234184b8e46dde9d0aea346dd0704ab7e155e 100644 (file)
@@ -2,24 +2,17 @@
 # You can also contact me on http://blog.harvie.cz/
 
 pkgname=picogen
-pkgver=0.2.0
+pkgver=0.3
 pkgrel=1
 pkgdesc="Free Terragen-like terrain generator and (monte-carlo method) ray tracer"
-arch=('i686')
+arch=(i686) #x86_64)
 license=('GPL')
 url="http://picogen.org/"
-depends=(
-       'libtiff'
-)
-
-source=(
-       "http://picogen.org/get/current/gnu+linux/${pkgname}-${pkgver}.tar.gz"
-       )
-
-md5sums=(
-       '44fae5f72e2732e2b4a8fbfc1fe56e5b'
-       )
+depends=('libnoise') #libtiff
 
+_pkgarch=i386;
+source=("http://picogen.googlecode.com/files/${pkgname}-${pkgver}-${_pkgarch}.tar.gz")
+md5sums=('ffb1fc0653cb85b214d8e099574310ad')
 
 build() {
   mkdir -p "${pkgdir}/opt/picogen/"
@@ -27,29 +20,45 @@ build() {
   mkdir -p "${pkgdir}/usr/lib/"
 
        cd ${srcdir}
-       rm "${pkgname}-${pkgver}.tar.gz"
+       rm *.tar.gz
        cp -r * "${pkgdir}/opt/picogen/" || return 1
-       strip "${pkgdir}/opt/picogen/"*
+       strip "${pkgdir}/opt/picogen/"* 2>/dev/null || true
 
-       ln -s /opt/picogen/picogen "${pkgdir}/usr/bin/picogen" || return 1
-       ln -s /opt/picogen/picogen-wx "${pkgdir}/usr/bin/picogen-wx" || return 1
+       cd "${pkgdir}/opt/picogen/"
+       ln -s "/opt/picogen/picohelp" "${pkgdir}/usr/bin/picogen-help"
+       for i in picogen-pure picogen-simplex picogen-quatsch-editor; do
+               ln -s "/opt/picogen/${i}" "${pkgdir}/usr/bin/${i}" || return 1
+               cat ${i} | sed -e 's/libnoise.so.0/libnoise.so\x00\x00/g' > ${i}.fix
+               mv -f ${i}.fix ${i}
+       done;
 
-       ln -s /usr/lib/libtiff.so.3 "${pkgdir}/usr/lib/libtiff.so.4" || return 1
-       
-       chmod -R 755 "${pkgdir}/usr/"
+       chmod -R 755 "${pkgdir}/opt/picogen/"
 
        #Desktop Launcher
        mkdir -p ${pkgdir}/usr/share/applications
-       echo '[Desktop Entry]
+
+       echo "[Desktop Entry]
+Encoding=UTF-8
+Name=PicoGen Simplex
+GenericName=PicoGen Simplex
+Comment=Terragen-like terrain generator
+Exec=/usr/bin/picogen-simplex
+Icon=/opt/picogen/icons/simplexgui.png
+StartupNotify=true
+Terminal=false
+Type=Application
+Categories=Graphics;3DGraphics;RasterGraphics;" > ${pkgdir}/usr/share/applications/picogen-simplex.desktop
+
+       echo "[Desktop Entry]
 Encoding=UTF-8
-Name=PicoGen
-GenericName=PicoGen
+Name=PicoGen Quatsch Editor
+GenericName=PicoGen Quatsch Editor
 Comment=Terragen-like terrain generator
-Exec=/usr/bin/picogen-wx
-Icon=picogen
+Exec=/usr/bin/picogen-quatsch-editor
+Icon=/opt/picogen/icons/quatsch-editor.png
 StartupNotify=true
 Terminal=false
 Type=Application
-Categories=Graphics;3DGraphics;RasterGraphics;' > ${pkgdir}/usr/share/applications/picogen.desktop
+Categories=Graphics;3DGraphics;RasterGraphics;" > ${pkgdir}/usr/share/applications/picogen-quatsch-editor.desktop
 
 }
This page took 0.154042 seconds and 4 git commands to generate.