summaryrefslogtreecommitdiff
path: root/repo/supertuxkart/supertuxkart.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-04 15:08:04 +0100
committerdavidovski <david@davidovski.xyz>2022-06-04 15:08:04 +0100
commit873665024ebfaa761ee49b508a79db7178aeb778 (patch)
tree6cd3b4ce3a9f4b0586ffa48e73a6ba4c8da2db43 /repo/supertuxkart/supertuxkart.xibuild
parent4445f6e15185f58dc599390ab74df3ca19b437b7 (diff)
added gnupg
Diffstat (limited to 'repo/supertuxkart/supertuxkart.xibuild')
-rw-r--r--repo/supertuxkart/supertuxkart.xibuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/repo/supertuxkart/supertuxkart.xibuild b/repo/supertuxkart/supertuxkart.xibuild
new file mode 100644
index 0000000..ae8d7e3
--- /dev/null
+++ b/repo/supertuxkart/supertuxkart.xibuild
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+NAME="supertuxkart"
+DESC="Kart racing game featuring Tux and his friends"
+
+MAKEDEPS="bluez cmake curl freetype2 fribidi glew harfbuzz openjpeg libpng libvorbis libxkbcommon libxrandr openal-soft sdl2 sqlite3 wayland"
+
+PKG_VER=1.3
+SOURCE="https://github.com/supertuxkart/stk-code/releases/download/$PKG_VER/SuperTuxKart-$PKG_VER-src.tar.xz"
+
+ADDITIONAL="
+server_config.xml
+"
+
+build() {
+ GLES2_RENDERER=OFF
+
+ # Game
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_RECORDER=0 \
+ -DUSE_GLES2=$GLES2_RENDERER
+ cmake --build build
+
+ # Server only
+ cmake -B build-server \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_RECORDER=0 \
+ -DSERVER_ONLY=ON
+ cmake --build build-server
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --install build
+
+ # Not sure why this is in here
+ rm "$PKG_DEST"/usr/include/wiiuse.h
+}