aboutsummaryrefslogtreecommitdiffstats
path: root/testing/supertuxkart
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@gmail.com>2011-03-17 21:46:57 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-03-18 15:27:30 +0000
commit7aa2564ce68120f41222ef0d08e47d90a626a485 (patch)
tree089ac6a5917bb60d7c5132dc3cf2029e4670efd3 /testing/supertuxkart
parent831e25f4b2a8b949a1ed43695a31fb9f4d432546 (diff)
downloadaports-7aa2564ce68120f41222ef0d08e47d90a626a485.tar.bz2
aports-7aa2564ce68120f41222ef0d08e47d90a626a485.tar.xz
testing/supertuxkart: new aport
Diffstat (limited to 'testing/supertuxkart')
-rw-r--r--testing/supertuxkart/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/supertuxkart/APKBUILD b/testing/supertuxkart/APKBUILD
new file mode 100644
index 0000000000..cc47cc6e3f
--- /dev/null
+++ b/testing/supertuxkart/APKBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Jeff Bilyk <jbilyk@alpinelinux.org>
+pkgname=supertuxkart
+pkgver=0.7
+pkgrel=0
+pkgdesc="Kart racing game"
+url="http://supertuxkart.sourceforge.net"
+arch="x86 x86_64"
+license="GPL"
+depends=
+depends_dev="irrlicht libvorbis-dev libogg-dev openal-soft-dev mesa-dev jpeg-dev gettext-dev"
+makedepends="$depends_dev"
+source="http://downloads.sourceforge.net/project/$pkgname/SuperTuxKart/0.7/$pkgname-$pkgver-src.tar.bz2"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --datadir=/usr/share \
+ --bindir=/usr/bin \
+ --with-irrlicht=/usr/include/irrlicht \
+ || return 1
+ # From arch pkgbuild
+ sed -i "s#/usr/local#/usr#" src/io/file_manager.cpp
+ sed -i "s#/games#/bin#" $(grep -r "/games" *)
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="2806f271e4d37fee5ad8ca166e1ad489 supertuxkart-0.7-src.tar.bz2"