summaryrefslogtreecommitdiff
path: root/community/supertuxkart
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/supertuxkart
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/supertuxkart')
-rw-r--r--community/supertuxkart/PKGBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/community/supertuxkart/PKGBUILD b/community/supertuxkart/PKGBUILD
new file mode 100644
index 000000000..a31909eef
--- /dev/null
+++ b/community/supertuxkart/PKGBUILD
@@ -0,0 +1,56 @@
+# $Id: PKGBUILD 81785 2012-12-29 16:57:50Z arodseth $
+# 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.8
+pkgrel=3
+pkgdesc='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' 'imagemagick' 'setconf')
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.bz2")
+md5sums=('0b939ce601374758938119e0b0dd1fec')
+
+build() {
+ cd ${srcdir}/SuperTuxKart-${pkgver}
+
+ convert "data/${pkgname}_64.xpm" "data/$pkgname.png"
+ _fn="data/${pkgname}_desktop.template"
+ setconf "$_fn" Exec "$pkgname --log=file"
+ setconf "$_fn" TryExec "$pkgname"
+ setconf "$_fn" Icon "$pkgname"
+
+ 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
+
+ cd ../data
+ install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
+}
+
+# vim:set ts=2 sw=2 et: