# $Id: PKGBUILD 81143 2012-12-12 06:53:44Z svenstaro $ # Maintainer: Sven-Hendrik Haase # Contributor: Daenyth # Contributor: Allan McRae # Contributor: rabyte pkgname=supertuxkart pkgver=0.8 pkgrel=1 pkgdesc="A kart racing game featuring Tux and his friends" arch=('i686' 'x86_64') url="http://supertuxkart.sourceforge.net/" license=('GPL2') depends=('openal' 'libvorbis' 'libgl' 'fribidi' 'curl') makedepends=('cmake' 'subversion' 'mesa') source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.bz2) md5sums=('0b939ce601374758938119e0b0dd1fec') build() { cd ${srcdir}/SuperTuxKart-${pkgver} cd lib/irrlicht/source/Irrlicht NDEBUG=1 make cd ${srcdir}/SuperTuxKart-${pkgver} #sed -i "s|share/games|share|g" CMakeLists.txt [[ -d build ]] && rm -r build mkdir build && cd build cmake \ -DIRRLICHT_DIR="$srcdir/irrlicht" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_CXX_FLAGS="-lpthread -lm -ldl" \ .. make } package() { cd ${srcdir}/SuperTuxKart-${pkgver} cd build make DESTDIR=${pkgdir} install # fix executable location... #install -Dm755 ${pkgdir}/usr/games/supertuxkart ${pkgdir}/usr/bin/supertuxkart #rm -r ${pkgdir}/usr/games #sed -i "s#usr/games/supertuxkart#usr/bin/supertuxkart#" ${pkgdir}/usr/share/applications/supertuxkart.desktop } # vim:set ts=2 sw=2 et: