blob: 2af0ae27a4c07f989c89e205d8521c24156291c6 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=supertuxkart
pkgver=1.0
pkgrel=1
arch="all"
url="https://supertuxkart.net/"
pkgdesc="Kart racing game featuring Tux and his friends"
license="GPL-3.0-or-later"
depends="$pkgname-data"
makedepends="cmake glew-dev jpeg-dev libpng-dev libxrandr-dev wayland-dev libxkbcommon-dev bluez-dev openal-soft-dev libvorbis-dev freetype-dev fribidi-dev curl-dev harfbuzz-dev"
source="$pkgname-$pkgver.tar.xz::https://downloads.sourceforge.net/supertuxkart/supertuxkart-$pkgver-src.tar.xz
no-sysctl.patch
va_list.patch"
subpackages="$pkgname-static $pkgname-data::noarch"
prepare() {
default_prepare
mkdir "$builddir"/build
}
build() {
cd "$builddir"/build
case "$CARCH" in
arm*|aarch64) GLES2_RENDERER=ON ;;
* ) GLES2_RENDERER=OFF ;;
esac
cmake "$builddir" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_RECORDER=0 \
-DUSE_GLES2=$GLES2_RENDERER
make
}
check() {
cd "$builddir"/build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"/build
DESTDIR="$pkgdir" make install
}
data() {
pkgdesc="$pkgdesc (data files)"
mkdir -p "$subpkgdir"/usr/share/supertuxkart
mv "$pkgdir"/usr/share/supertuxkart/data \
"$subpkgdir"/usr/share/supertuxkart
}
sha512sums="182754610abd09545630fa1f7fda858ba1731bbacb078bc71597e143f9cb2a1cfcedd3038720760d0471a89b79cc3bb1eb292d38fcd53be05aad7cb17c474ca9 supertuxkart-1.0.tar.xz
e197cc991e197b2406c40006b3966663b2279eb96872b0f567dfa574c82eb1fa9ebd2101b8e0d9dbc66b766882d2b200a32c75364f1218cdf48e4362f20268f4 no-sysctl.patch
0a6d713dd7505fd0ac921de0d2584459e271ea88f7088a1333ad1f3c704d84785845f8c9b96d7441a42e5c13225810921f343c163fd077d1868d641afa8cb7f4 va_list.patch"
|