# Contributor: Jaroslaw Swierczynski # Contributor: Eric Belanger # Contributor: vande198 # Maintainer: Daniel J Griffiths pkgname=supertux pkgver=0.3.3 pkgrel=5 pkgdesc="A classic 2D jump'n run sidescroller game in a style similar to the original SuperMario games" arch=('i686' 'x86_64' 'mips64el') 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" 'squirrel.patch') md5sums=('f3f803e629ee51a9de0b366a036e393d' 'eb06315514be4f200428f14b927beb66') build() { cd ${srcdir}/${pkgname}-${pkgver} # The following patch was taken from .-.- patch -Np1 -i "$srcdir/squirrel.patch" sed -i '1i#include ' 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 }