1 # Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
2 # Original Maintainer: Hakim <acrox999 at gmail dot com>
3 # Contributor: Patrick Bartels <p4ddy.b@gmail.com>
7 pkgdesc="A classic 2D jump'n run sidescroller game in a style similar to the original SuperMario game"
8 url='http://super-tux.sourceforge.net'
10 arch=('i686' 'x86_64')
11 depends=('sdl_image' 'physfs' 'openal' 'libvorbis' 'curl' 'boost' 'glew')
12 makedepends=('subversion' 'cmake')
13 conflicts=('supertux')
16 _svntrunk='http://supertux.lethargik.org/svn/supertux/trunk/supertux'
21 msg "Connecting to SVN server...."
23 if [[ -d "${_svnmod}/.svn" ]]; then
24 (cd "${_svnmod}" && svn up -r "${pkgver}")
26 svn co "${_svntrunk}" --config-dir ./ -r "${pkgver}" "${_svnmod}"
29 msg 'SVN checkout done or server timeout'
30 msg 'Starting build...'
32 rm -rf "${srcdir}/${_svnmod}-build"
33 cp -r "${srcdir}/${_svnmod}" "${srcdir}/${_svnmod}-build"
34 cd "${srcdir}/${_svnmod}-build"
36 sed -i '/curl\/types.h/d' src/addon/addon_manager.cpp
37 sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp
38 cmake -D CMAKE_INSTALL_PREFIX=/usr -D INSTALL_SUBDIR_BIN=bin .
42 cd "${srcdir}/${_svnmod}-build"
44 make DESTDIR="${pkgdir}/" install