summaryrefslogtreecommitdiff
path: root/community/supertux/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/supertux/PKGBUILD')
-rw-r--r--community/supertux/PKGBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/community/supertux/PKGBUILD b/community/supertux/PKGBUILD
index 48159914c..dbcd690af 100644
--- a/community/supertux/PKGBUILD
+++ b/community/supertux/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=supertux
pkgver=0.3.3
-pkgrel=2
+pkgrel=3
pkgdesc="A classic 2D jump'n run sidescroller game in a style similar to the original SuperMario games"
arch=('i686' 'x86_64')
url="http://super-tux.sourceforge.net/"
@@ -16,12 +16,15 @@ source=(http://download.berlios.de/supertux/${pkgname}-${pkgver}.tar.bz2)
md5sums=('f3f803e629ee51a9de0b366a036e393d')
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
- cmake -D CMAKE_INSTALL_PREFIX=/usr -D INSTALL_SUBDIR_BIN=bin .
- make || return 1
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp
+ cmake -D CMAKE_INSTALL_PREFIX=/usr -D INSTALL_SUBDIR_BIN=bin .
+ make
}
package() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make DESTDIR=${pkgdir} install || return 1
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ make DESTDIR=${pkgdir} install
}