aboutsummaryrefslogtreecommitdiffstats
path: root/testing/etracer/APKBUILD
blob: 399945d78e510bc302a4106a88139d05a0e5fe7f (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=etracer
pkgver=0.4
pkgrel=5
pkgdesc="racing game where you race tux down a mountain"
url="http://extremetuxracer.com/"
arch="all"
license="GPL"
depends=
makedepends="sdl-dev mesa-dev sdl_mixer-dev tcl-dev freetype-dev libpng-dev
	libx11-dev libxext-dev libxmu-dev libxi-dev libxt-dev glu-dev"
install=""
source="http://downloads.sourceforge.net/extremetuxracer/extremetuxracer-${pkgver}.tar.gz
	etracer-finite.patch
	etracer-png.patch"

_builddir="${srcdir}/extremetuxracer-${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 \
		--sysconfdir=/etc || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="6830eb4e1ca7c5a541f286ded3853f9f  extremetuxracer-0.4.tar.gz
c915c433dee3d3ef8d4884560b55210b  etracer-finite.patch
c476c21cc82dcf67337d982f2ec3d64b  etracer-png.patch"