makedeb


zod-engine 0.2011.09.06-2


The Zod Engine - An Open Source Remake of the 1996 Game Z by Bitmap Brothers

Click here to go back to the commit logs for zod-engine.

Commit:


Hash: 5b96b0307ec364d42c67d26f1a666261cc7a98f0

Message: Initial mpr release

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 490fe1b..9786af0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,25 +1,30 @@
-pkgbase = commander-zod
-	pkgdesc = The Zod Engine - An Open Source Remake of the 1996 Game Z by Bitmap Brothers
-	pkgver = 0.2011_09_06
-	pkgrel = 2
-	url = http://zod.sourceforge.net/
-	arch = i686
-	arch = x86_64
-	license = GPL
-	depends = sdl
-	depends = sdl_mixer
-	depends = sdl_ttf
-	depends = sdl_image
-	depends = libmariadbclient
-	depends = wxgtk2.8
-	source = https://sourceforge.net/projects/zod/files/linux_releases/zod_linux-2011-09-06.tar.gz
-	source = commander-zod.desktop
-	source = commander-zod
-	source = zod_launcher_wxgtk2.8.patch
-	md5sums = ab366b279e43add48d66e3d8224cfafa
-	md5sums = 51949abec46c79b9871fedc99d88f4bd
-	md5sums = 76d5a47d6985756fe311d2ce02a3355b
-	md5sums = e43e25604bf35e33f427ff3678f8c2ac
-
-pkgname = commander-zod
-
+generated-by = makedeb
+pkgname = zod-engine
+pkgbase = zod-engine
+pkgdesc = The Zod Engine - An Open Source Remake of the 1996 Game Z by Bitmap Brothers
+pkgrel = 0
+pkgver = 0.2011.09.06
+url = http://zod.sourceforge.net/
+arch = i386
+arch = amd64
+depends = libsdl1.2debian
+depends = libsdl-mixer1.2
+depends = libsdl-ttf2.0-0
+depends = libsdl-image1.2
+depends = libmariadb3
+depends = libwxgtk3.0-gtk3-0v5
+license = GPL
+makedepends = libsdl1.2-dev
+makedepends = libsdl-mixer1.2-dev
+makedepends = libsdl-ttf2.0-dev
+makedepends = libsdl-image1.2-dev
+makedepends = libmariadb-dev-compat
+makedepends = libwxgtk3.0-gtk3-dev
+source = https://sourceforge.net/projects/zod/files/linux_releases/zod_linux-2011-09-06.tar.gz
+b2sums = 01ce342df4f95bdc2feedb759dd8b8e1e5fd91d5a0b71a159f706b42ba8c47ffdedb9f98a756bd8f978043e78b4ef1f7b6380d8585efb7ef7fa81cd019e79533
+makedepends = libsdl1.2-dev
+makedepends = libsdl-mixer1.2-dev
+makedepends = libsdl-ttf2.0-dev
+makedepends = libsdl-image1.2-dev
+makedepends = libmariadb-dev-compat
+makedepends = libwxgtk3.0-gtk3-dev
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a9b70ef
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+zod*
+pkg/
+src/
diff --git a/PKGBUILD b/PKGBUILD
index cf03c62..2cb7e85 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,77 @@
-# Contributor: Stefan J. Betz <info@stefan-betz.net>
-pkgname=commander-zod
+# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: Stefan J. Betz (AUR) <info@stefan-betz.net>
+pkgname=zod-engine
 _version=2011_09_06
-pkgver=0.$_version
-pkgrel=2
+pkgver=0.2011.09.06
+pkgrel=0
+# fork "zed online" https://sourceforge.net/projects/zedonline/
 pkgdesc="The Zod Engine - An Open Source Remake of the 1996 Game Z by Bitmap Brothers"
-depends=("sdl" "sdl_mixer" "sdl_ttf" "sdl_image" "libmariadbclient" "wxgtk2.8")
-arch=('i686' 'x86_64')
+depends=('libsdl1.2debian'
+         'libsdl-mixer1.2' 
+         'libsdl-ttf2.0-0'
+         'libsdl-image1.2'
+         'libmariadb3'
+         'libwxgtk3.0-gtk3-0v5')
+makedepends=('libsdl1.2-dev'
+             'libsdl-mixer1.2-dev'
+             'libsdl-ttf2.0-dev'
+             'libsdl-image1.2-dev'
+             'libmariadb-dev-compat'
+             'libwxgtk3.0-gtk3-dev')
+arch=('i386' 'amd64')
 license=('GPL')
 url="http://zod.sourceforge.net/"
-source=("https://sourceforge.net/projects/zod/files/linux_releases/zod_linux-${_version//_/-}.tar.gz"
-	"commander-zod.desktop"
-	"commander-zod"
-	"zod_launcher_wxgtk2.8.patch")
-md5sums=('ab366b279e43add48d66e3d8224cfafa'
-         '51949abec46c79b9871fedc99d88f4bd'
-	 '76d5a47d6985756fe311d2ce02a3355b'
-	 'e43e25604bf35e33f427ff3678f8c2ac')
+source=("https://sourceforge.net/projects/zod/files/linux_releases/zod_linux-${_version//_/-}.tar.gz")
+b2sums=('01ce342df4f95bdc2feedb759dd8b8e1e5fd91d5a0b71a159f706b42ba8c47ffdedb9f98a756bd8f978043e78b4ef1f7b6380d8585efb7ef7fa81cd019e79533')
+
+prepare(){
+  cd $srcdir
+  sed -i 's!check\.replace(i,1,1,'\''_'\'');!check\.replace(i,1,1, (wxUniChar)'\''_'\'');!' 'zod_engine/zod_launcher_src/zod_launcherFrm.cpp'
+  find $srcdir/zod_engine/assets/ -name Thumbs.db -delete
+  rm $srcdir/zod_engine/assets/{splash.png,splash.xcf}
+}
 
 build() {
-	cd $srcdir
-	patch -p0 < zod_launcher_wxgtk2.8.patch
-	make -C $srcdir/zod_engine/zod_src
-	make -C $srcdir/zod_engine/zod_src map_editor
-	make -C $srcdir/zod_engine/zod_launcher_src
-	mv $srcdir/zod_engine/zod_src/zod $srcdir/zod_engine
-	mv $srcdir/zod_engine/zod_src/zod_map_editor $srcdir/zod_engine
-	mv $srcdir/zod_engine/zod_launcher_src/zod_launcher $srcdir/zod_engine
-	rm -r -f $srcdir/zod_engine/zod_src
-	rm -r -f $srcdir/zod_engine/zod_launcher_src
+  cd $srcdir
+  make -C $srcdir/zod_engine/zod_src
+  make -C $srcdir/zod_engine/zod_src map_editor
+  make -C $srcdir/zod_engine/zod_launcher_src
 }
 
 package() {
-	mkdir -p $pkgdir/usr/lib
-	mkdir -p $pkgdir/usr/bin
-	mkdir -p $pkgdir/usr/share/applications/
-	mv $srcdir/zod_engine $pkgdir/usr/lib/commander-zod
-	install -m755 $srcdir/commander-zod $pkgdir/usr/bin/
-	install -m644 $srcdir/commander-zod.desktop $pkgdir/usr/share/applications/
+  # Creating Directories
+  install -m755 -d $pkgdir/usr/{games,libexec/$pkgname,share/{applications,pixmaps,games/$pkgname,doc/$pkgname}}
+  # Copy files
+  cp -R $srcdir/zod_engine/{assets,blank_maps,*.txt,*.map} $pkgdir/usr/share/games/$pkgname
+  install -Dm755 $srcdir/zod_engine/zod_src/zod $pkgdir/usr/games/
+  install -Dm755 $srcdir/zod_engine/zod_src/zod_map_editor $pkgdir/usr/games/zod-map-editor
+  install -Dm755 $srcdir/zod_engine/zod_launcher_src/zod_launcher $pkgdir/usr/libexec/$pkgname/zod-launcher
+
+  # Launcher wrapper
+echo "#!/bin/sh
+
+config_dir=\${XDG_CONFIG_HOME:-$HOME/.config}/$pkgname
+
+if [ ! -e \$config_dir ]; then
+  cp -as /usr/share/games/$pkgname/ \$config_dir
+  ln -sf /usr/games/zod \$config_dir/zod
+  cp --remove-destination /usr/share/games/$pkgname/default_settings.txt \$config_dir/
+fi
+
+cd \$config_dir
+exec /usr/libexec/$pkgname/zod-launcher" > $pkgdir/usr/games/zod-launcher
+chmod 755 $pkgdir/usr/games/zod-launcher
+
+  # Deskrop file
+echo "[Desktop Entry]
+Version=1.0
+Type=Application
+Terminal=false
+Icon=$pkgname.png
+Name=Zod Engine
+Exec=zod-launcher
+Categories=Application;Game;" > $pkgdir/usr/share/applications/$pkgname.desktop
+  # Adjustments
+  ln -sf /usr/share/games/$pkgname/assets/icon.png $pkgdir/usr/share/pixmaps/$pkgname.png
+  mv $pkgdir/usr/share/games/$pkgname/{*help.txt,readme_linux.txt} $pkgdir/usr/share/doc/$pkgname/
 }
diff --git a/commander-zod b/commander-zod
deleted file mode 100644
index c2c5bc8..0000000
--- a/commander-zod
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-cd /usr/lib/commander-zod
-./zod_launcher
diff --git a/commander-zod.desktop b/commander-zod.desktop
deleted file mode 100644
index 6614473..0000000
--- a/commander-zod.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/usr/bin/env xdg-open
-
-[Desktop Entry]
-Version=1.0
-Type=Application
-Terminal=false
-Icon=/usr/lib/commander-zod/assets/icon.png
-Name=Commander Zod
-Exec=/usr/bin/commander-zod
-Categories=Application;Game;
diff --git a/zod_launcher_wxgtk2.8.patch b/zod_launcher_wxgtk2.8.patch
deleted file mode 100644
index 3af2021..0000000
--- a/zod_launcher_wxgtk2.8.patch
+++ /dev/null
@@ -1,6 +0,0 @@
---- zod_engine/zod_launcher_src/makefile	2011-03-22 12:13:12.000000000 +0100
-+++ zod_engine/zod_launcher_src/makefile	2014-02-15 15:33:25.112195490 +0100
-@@ -1,2 +1,2 @@
- default:
--	g++ -g -o zod_launcher *.cpp `wx-config --cppflags` `wx-config --libs`
-+	g++ -g -o zod_launcher *.cpp `wx-config-2.8 --cppflags` `wx-config-2.8 --libs`