From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/supertuxkart/PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 community/supertuxkart/PKGBUILD (limited to 'community/supertuxkart/PKGBUILD') diff --git a/community/supertuxkart/PKGBUILD b/community/supertuxkart/PKGBUILD new file mode 100644 index 000000000..0cbd840c7 --- /dev/null +++ b/community/supertuxkart/PKGBUILD @@ -0,0 +1,47 @@ +# $Id: PKGBUILD 35517 2010-12-21 13:39:10Z svenstaro $ +# Maintainer: Sven-Hendrik Haase +# Contributor: Daenyth +# Contributor: Allan McRae +# Contributor: rabyte + +pkgname=supertuxkart +pkgver=0.7 +pkgrel=1 +pkgdesc="A kart racing game featuring Tux and his friends" +arch=('i686' 'x86_64') +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') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + ./configure --prefix=/usr --datadir=/usr/share + + # Fix compilation failure: http://bugs.gentoo.org/283490 + #sed -i 's/-lGL/-lGL -lGLU/' config.status + + # those configure flags really mean nothing... + sed -i "s#/usr/local#/usr#" src/io/file_manager.cpp + sed -i "s#/games##" $(grep -Rl "/games" *) + + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install + + # fix executable location... + install -dm755 ${pkgdir}/usr/bin + mv ${pkgdir}/usr/supertuxkart ${pkgdir}/usr/bin/supertuxkart + + sed -i "s#usr/supertuxkart#usr/bin/supertuxkart#" \ + ${pkgdir}/usr/share/applications/supertuxkart.desktop +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf