summaryrefslogtreecommitdiff
path: root/community/supertuxkart/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/supertuxkart/PKGBUILD')
-rw-r--r--community/supertuxkart/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
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 <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
+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: