summaryrefslogtreecommitdiffstats
path: root/testing/supertuxkart/APKBUILD
blob: cc47cc6e3f8aba72987478be74487c78e9148fd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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"