summaryrefslogtreecommitdiff
path: root/community-testing/supertux/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-31 00:02:30 +0000
committerroot <root@rshg054.dnsready.net>2012-07-31 00:02:30 +0000
commit5b3474881a154216b47c6e154552ee5f9c68c509 (patch)
tree098f24750e89f88b3c80ded4579a44928bae1b45 /community-testing/supertux/PKGBUILD
parent4982c269b318734d01ad30c6592fbb73565ceb12 (diff)
Tue Jul 31 00:02:29 UTC 2012
Diffstat (limited to 'community-testing/supertux/PKGBUILD')
-rw-r--r--community-testing/supertux/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community-testing/supertux/PKGBUILD b/community-testing/supertux/PKGBUILD
new file mode 100644
index 000000000..3a0774e73
--- /dev/null
+++ b/community-testing/supertux/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 74523 2012-07-29 21:16:37Z ebelanger $
+# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
+# Contributor: Eric BĂ©langer <eric@archlinux.org>
+# Contributor: vande198
+# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
+
+pkgname=supertux
+pkgver=0.3.3
+pkgrel=6
+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/"
+license=('GPL')
+depends=('sdl_image' 'curl' 'physfs' 'openal' 'libvorbis' 'libgl' 'glew')
+makedepends=('cmake' 'boost')
+source=(http://download.berlios.de/supertux/${pkgname}-${pkgver}.tar.bz2
+ supertux2-0.3.3-squirrel-gcc47.patch)
+md5sums=('f3f803e629ee51a9de0b366a036e393d'
+ 'eb06315514be4f200428f14b927beb66')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -p1 -i "${srcdir}/supertux2-0.3.3-squirrel-gcc47.patch"
+ sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp
+ sed -i '/types\.h/d' src/addon/addon_manager.cpp
+ cmake -D CMAKE_INSTALL_PREFIX=/usr -D INSTALL_SUBDIR_BIN=bin .
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+}