blob: 018fa8b3ef52a81709862d7306f057083aa63bb4 (
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
44
|
# Maintainer: Jeff Bilyk <jbilyk@alpinelinux.org>
pkgname=supertuxkart
pkgver=0.8
pkgrel=0
pkgdesc="Kart racing game"
url="http://supertuxkart.sourceforge.net"
arch="x86 x86_64"
license="GPL"
depends=
makedepends="libvorbis-dev libogg-dev openal-soft-dev mesa-dev
libjpeg-turbo-dev gettext-dev cmake curl-dev fribidi-dev"
source="http://downloads.sourceforge.net/project/$pkgname/SuperTuxKart/$pkgver/$pkgname-$pkgver-src.tar.bz2"
_builddir="$srcdir"/SuperTuxKart-$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"
cmake . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="-lpthread -lm -ldl" \
|| return 1
NDEBUG=1 make -C lib/irrlicht/source/Irrlicht || return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="0b939ce601374758938119e0b0dd1fec supertuxkart-0.8-src.tar.bz2"
sha256sums="b99f3d2311457a34db3c42ba2195662f2993a48eae4f6b1f175dbcce09ad4b8b supertuxkart-0.8-src.tar.bz2"
sha512sums="1936ff85ab896ad46633e53423a55c74aebe7a49d55024ed9bd76baf735e2e3c1ada0e83e3cc29dc7b9ff257484f2a9edb0bf5cf61b0b78fa5757f2e702a6f72 supertuxkart-0.8-src.tar.bz2"
|