From 873665024ebfaa761ee49b508a79db7178aeb778 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 4 Jun 2022 15:08:04 +0100 Subject: added gnupg --- repo/supertuxkart/server_config.xml | 169 ++++++++++++++++++++++++++ repo/supertuxkart/supertuxkart-data.xibuild | 7 ++ repo/supertuxkart/supertuxkart-server.xibuild | 17 +++ repo/supertuxkart/supertuxkart.xibuild | 42 +++++++ 4 files changed, 235 insertions(+) create mode 100644 repo/supertuxkart/server_config.xml create mode 100644 repo/supertuxkart/supertuxkart-data.xibuild create mode 100644 repo/supertuxkart/supertuxkart-server.xibuild create mode 100644 repo/supertuxkart/supertuxkart.xibuild (limited to 'repo/supertuxkart') diff --git a/repo/supertuxkart/server_config.xml b/repo/supertuxkart/server_config.xml new file mode 100644 index 0000000..0f65f36 --- /dev/null +++ b/repo/supertuxkart/server_config.xml @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/repo/supertuxkart/supertuxkart-data.xibuild b/repo/supertuxkart/supertuxkart-data.xibuild new file mode 100644 index 0000000..0c23270 --- /dev/null +++ b/repo/supertuxkart/supertuxkart-data.xibuild @@ -0,0 +1,7 @@ +#!/bin/sh + +DESC="Datafiles for SuperTuxKart" + +package () { + add_from_main usr/share/supertuxkart/data +} diff --git a/repo/supertuxkart/supertuxkart-server.xibuild b/repo/supertuxkart/supertuxkart-server.xibuild new file mode 100644 index 0000000..8dd7ea0 --- /dev/null +++ b/repo/supertuxkart/supertuxkart-server.xibuild @@ -0,0 +1,17 @@ +#!/bin/sh + +DESC="Server for supertuxkart" +DEPS="supertuxkart-data" + +package () { + cd "$BUILD_ROOT" + DESTDIR="$PKG_DEST" cmake --install build-server + + mv "$PKG_DEST"/usr/bin/supertuxkart \ + "$PKG_DEST"/usr/bin/supertuxkart-server + + rm -r "${PKG_DEST:?}"/usr/share/ + + install -Dm644 "$BUILD_ROOT"/server_config.xml \ + "$PKG_DEST"/usr/share/supertuxkart/data/server_config.xml +} 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 +} -- cgit v1.2.1