summaryrefslogtreecommitdiff
path: root/community-staging
diff options
context:
space:
mode:
Diffstat (limited to 'community-staging')
-rw-r--r--community-staging/lincity-ng/PKGBUILD27
-rw-r--r--community-staging/warmux/PKGBUILD41
-rw-r--r--community-staging/warmux/gcc-fix.patch36
-rw-r--r--community-staging/warmux/include-zlib.patch11
-rw-r--r--community-staging/widelands/PKGBUILD4
5 files changed, 117 insertions, 2 deletions
diff --git a/community-staging/lincity-ng/PKGBUILD b/community-staging/lincity-ng/PKGBUILD
new file mode 100644
index 000000000..fb01bb777
--- /dev/null
+++ b/community-staging/lincity-ng/PKGBUILD
@@ -0,0 +1,27 @@
+# $Id: PKGBUILD 75469 2012-08-25 17:01:48Z ebelanger $
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
+
+pkgname=lincity-ng
+pkgver=2.0
+pkgrel=5
+pkgdesc="A city simulation game"
+arch=('i686' 'x86_64')
+url="http://lincity-ng.berlios.de/wiki/index.php/Main_Page"
+license=('GPL' 'custom')
+depends=('sdl_mixer' 'sdl_ttf' 'sdl_image' 'physfs' 'libxml2' 'sdl_gfx' 'gcc-libs' 'libgl')
+makedepends=('ftjam' 'mesa')
+source=(http://download.berlios.de/lincity-ng/${pkgname}-${pkgver}.tar.bz2)
+sha1sums=('2961a3f60f7481b33858d7d5ef7cf9c788d01077')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr
+ jam
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ jam -sprefix="${pkgdir}/usr" install
+ install -D -m644 COPYING-data.txt "${pkgdir}/usr/share/licenses/${pkgname}/COPYING-data.txt"
+ install -D -m644 COPYING-fonts.txt "${pkgdir}/usr/share/licenses/${pkgname}/COPYING-fonts.txt"
+}
diff --git a/community-staging/warmux/PKGBUILD b/community-staging/warmux/PKGBUILD
new file mode 100644
index 000000000..06e42cfa9
--- /dev/null
+++ b/community-staging/warmux/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 75479 2012-08-25 23:45:10Z lcarlier $
+# Contributor: Eric Belanger <eric@archlinux.org>
+# Contributor: pukyxd
+# Maintainer: Daenyth <Daenyth+Arch AT gmail DOT com>
+
+pkgname=warmux
+pkgver=11.04.1
+pkgrel=5
+pkgdesc="A clone of the worms game"
+arch=('i686' 'x86_64')
+url="http://www.wormux.org/"
+license=('GPL')
+makedepends=('pkgconfig' 'libxml++' 'sdl_image' 'sdl_gfx>=2.0.24' 'sdl_ttf' 'sdl_mixer' 'sdl_net' 'curl>=7.16.2' 'gcc-libs' 'libxml2')
+replaces=('wormux')
+source=(http://download.gna.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2
+ include-zlib.patch
+ gcc-fix.patch)
+md5sums=('26ff65c43a9bb61a3f0529c98b943e35'
+ 'c8285955e880f80e3c68312715a3061c'
+ 'ab50d613d3fa3f71262b1d2fc71641b1')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver/.1/}"
+
+ # libpng 1.5 fix
+ patch -Np1 -i ../include-zlib.patch
+ # gcc fix
+ patch -Np1 -i ../gcc-fix.patch
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ depends=('libxml++' 'sdl_image' 'sdl_gfx>=2.0.19' 'sdl_ttf' 'sdl_mixer' 'sdl_net' 'curl>=7.16.2' 'gcc-libs' 'libxml2' "warmux-data>=${pkgver/.1/}")
+
+ cd "${srcdir}/${pkgname}-${pkgver/.1/}"
+
+ make DESTDIR="${pkgdir}" install
+ rm -r ${pkgdir}/usr/share/warmux
+}
diff --git a/community-staging/warmux/gcc-fix.patch b/community-staging/warmux/gcc-fix.patch
new file mode 100644
index 000000000..1ac476b92
--- /dev/null
+++ b/community-staging/warmux/gcc-fix.patch
@@ -0,0 +1,36 @@
+## i-love-you-lordheavy.patch [diff]
+diff -ru warmux-11.04/lib/warmux/action/action.cpp warmux-11.04-new/lib/warmux/action/action.cpp
+--- warmux-11.04/lib/warmux/action/action.cpp 2011-04-28 21:03:14.000000000 +0200
++++ warmux-11.04-new/lib/warmux/action/action.cpp 2012-01-29 09:51:16.680251815 +0100
+@@ -81,7 +81,7 @@
+ }
+
+ // Build an action from a network packet
+-Action::Action(const char *buffer, DistantComputer* _creator)
++Action::Action(char *buffer, DistantComputer* _creator)
+ {
+ m_creator = _creator;
+
+diff -ru warmux-11.04/lib/warmux/include/WARMUX_action.h warmux-11.04-new/lib/warmux/include/WARMUX_action.h
+--- warmux-11.04/lib/warmux/include/WARMUX_action.h 2011-04-28 21:03:13.000000000 +0200
++++ warmux-11.04-new/lib/warmux/include/WARMUX_action.h 2012-01-29 09:52:14.246921833 +0100
+@@ -168,7 +168,7 @@
+ Action(Action_t type, Double value1, Double value2);
+
+ // Build an action from a network packet
+- Action(const char* buffer, DistantComputer* _creator);
++ Action(char* buffer, DistantComputer* _creator);
+
+ ~Action();
+
+Description: Fix FTBFS with gcc 4.7.
+Author: Felix Geyer <debfx-pkg@fobos.de>
+
+--- warmux-11.04.1+repack.orig/tools/list_games/main.cpp
++++ warmux-11.04.1+repack/tools/list_games/main.cpp
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <unistd.h>
+ #include <WARMUX_types.h>
+ #include <WARMUX_network.h>
+ #include <WARMUX_index_server.h>
diff --git a/community-staging/warmux/include-zlib.patch b/community-staging/warmux/include-zlib.patch
new file mode 100644
index 000000000..c7e77aba1
--- /dev/null
+++ b/community-staging/warmux/include-zlib.patch
@@ -0,0 +1,11 @@
+diff -uNr warmux-11.04.orig/src/graphic/surface.cpp warmux-11.04/src/graphic/surface.cpp
+--- warmux-11.04.orig/src/graphic/surface.cpp 2011-09-19 09:26:52.392650465 +0200
++++ warmux-11.04/src/graphic/surface.cpp 2011-09-19 09:26:19.417648189 +0200
+@@ -25,6 +25,7 @@
+ #include <SDL_image.h>
+ #include <SDL_rotozoom.h>
+ #include <png.h>
++#include <zlib.h>
+
+ #include "graphic/surface.h"
+ #include "tool/math_tools.h"
diff --git a/community-staging/widelands/PKGBUILD b/community-staging/widelands/PKGBUILD
index 5d82a99ad..945b4f48b 100644
--- a/community-staging/widelands/PKGBUILD
+++ b/community-staging/widelands/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 74457 2012-07-28 22:34:53Z tdziedzic $
+# $Id: PKGBUILD 75485 2012-08-26 00:09:03Z lcarlier $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Arkham <arkham at archlinux dot us>
# Contributor: Christoph Zeiler <rabyte*gmail>
@@ -6,7 +6,7 @@
pkgname=widelands
pkgver=17
_realver=build17
-pkgrel=3
+pkgrel=4
pkgdesc="A realtime strategy game with emphasis on economy and transport"
arch=('i686' 'x86_64')
url="http://widelands.org/"