diff options
Diffstat (limited to 'community/supertuxkart')
-rw-r--r-- | community/supertuxkart/PKGBUILD | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/community/supertuxkart/PKGBUILD b/community/supertuxkart/PKGBUILD index dcb29d348..8d4c066b6 100644 --- a/community/supertuxkart/PKGBUILD +++ b/community/supertuxkart/PKGBUILD @@ -1,32 +1,41 @@ -# $Id: PKGBUILD 35517 2010-12-21 13:39:10Z svenstaro $ +# $Id: PKGBUILD 64571 2012-02-16 20:13:20Z svenstaro $ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> # Contributor: Daenyth <Daenyth+Arch [AT] gmail [DOT] com> # Contributor: Allan McRae <allan@archlinux.org> # Contributor: rabyte <rabyte__gmail> pkgname=supertuxkart -pkgver=0.7 +pkgver=0.7.3 pkgrel=1 pkgdesc="A kart racing game featuring Tux and his friends" arch=('i686' 'x86_64' 'mips64el') url="http://supertuxkart.sourceforge.net/" license=('GPL2') -depends=('irrlicht' 'openal' 'libvorbis') -makedepends=() -source=(http://downloads.sourceforge.net/project/$pkgname/SuperTuxKart/0.7/$pkgname-$pkgver-src.tar.bz2) -md5sums=('2806f271e4d37fee5ad8ca166e1ad489') +depends=('openal' 'libvorbis' 'libgl' 'fribidi' 'curl') +makedepends=('cmake' 'subversion' 'mesa') +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.bz2) +md5sums=('502664b2ec9ad5ab88b1882fef4c074d') build() { + cd "$srcdir" + + svn co -r 3900 https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/trunk irrlicht + + cd irrlicht/source/Irrlicht + NDEBUG=1 make + cd ${srcdir}/${pkgname}-${pkgver} - ./configure --prefix=/usr --datadir=/usr/share + sed -i "s|share/games|share|g" CMakeLists.txt - # Fix compilation failure: http://bugs.gentoo.org/283490 - #sed -i 's/-lGL/-lGL -lGLU/' config.status + [[ -d build ]] && rm -r build + mkdir build && cd build - # those configure flags really mean nothing... - sed -i "s#/usr/local#/usr#" src/io/file_manager.cpp - sed -i "s#/games##" $(grep -Rl "/games" *) + cmake \ + -DIRRLICHT_DIR="$srcdir/irrlicht" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_CXX_FLAGS="-lpthread -lm -ldl" \ + .. make } @@ -34,11 +43,12 @@ build() { package() { cd ${srcdir}/${pkgname}-${pkgver} + cd build make DESTDIR=${pkgdir} install # fix executable location... - install -dm755 ${pkgdir}/usr/bin - mv ${pkgdir}/usr/supertuxkart ${pkgdir}/usr/bin/supertuxkart + install -Dm755 ${pkgdir}/usr/games/supertuxkart ${pkgdir}/usr/bin/supertuxkart + rm -r ${pkgdir}/usr/games sed -i "s#usr/supertuxkart#usr/bin/supertuxkart#" \ ${pkgdir}/usr/share/applications/supertuxkart.desktop |