summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--community/xmoto/PKGBUILD9
-rw-r--r--community/xmoto/unistd.patch12
2 files changed, 18 insertions, 3 deletions
diff --git a/community/xmoto/PKGBUILD b/community/xmoto/PKGBUILD
index 3f74ff3e3..93032427a 100644
--- a/community/xmoto/PKGBUILD
+++ b/community/xmoto/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=xmoto
pkgver=0.5.9
-pkgrel=2
+pkgrel=2.1
pkgdesc="A challenging 2D motocross platform game, where physics play an important role."
arch=('i686' 'x86_64' 'mips64el')
url="http://xmoto.tuxfamily.org"
@@ -15,14 +15,17 @@ depends=('bzip2' 'libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode' 'curl'
'libxdg-basedir' 'libxml++')
install=xmoto.install
source=("http://download.tuxfamily.org/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.gz"
- 'xmoto-0.5.9-libpng15.patch')
+ 'xmoto-0.5.9-libpng15.patch'
+ 'unistd.patch')
sha1sums=('07757accce78151dc8873bef8270df0e56196772'
- '27f52bd30772f67898e0bfd8c1e12478a4848192')
+ '27f52bd30772f67898e0bfd8c1e12478a4848192'
+ 'b78a86676a63c41972eee41551755d03b7d7680b')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np1 -i "${srcdir}/xmoto-0.5.9-libpng15.patch"
+ patch -Np0 -i "${srcdir}/unistd.patch"
# build and install
./configure LDFLAGS="-L/usr/lib" --prefix=/usr --disable-sdltest
diff --git a/community/xmoto/unistd.patch b/community/xmoto/unistd.patch
new file mode 100644
index 000000000..5cc765449
--- /dev/null
+++ b/community/xmoto/unistd.patch
@@ -0,0 +1,12 @@
+*** src/helpers/System.cpp 2011-10-11 22:18:14.000000000 +0200
+--- src/helpers/System2.cpp 2012-06-10 12:13:10.899345562 +0200
+***************
+*** 24,29 ****
+--- 24,30 ----
+ #include "Log.h"
+ #include "VExcept.h"
+ #include <sstream>
++ #include <unistd.h>
+
+ std::vector<std::string>* System::getDisplayModes(int windowed) {
+ std::vector<std::string>* modes = new std::vector<std::string>;