summaryrefslogtreecommitdiff
path: root/repo/supertux/supertux.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/supertux/supertux.xibuild
parent4445f6e15185f58dc599390ab74df3ca19b437b7 (diff)
added gnupg
Diffstat (limited to 'repo/supertux/supertux.xibuild')
-rw-r--r--repo/supertux/supertux.xibuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/repo/supertux/supertux.xibuild b/repo/supertux/supertux.xibuild
new file mode 100644
index 0000000..f45766c
--- /dev/null
+++ b/repo/supertux/supertux.xibuild
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+NAME="supertux"
+DESC="Open-source classic 2D jump'n run sidescroller game"
+
+MAKEDEPS="boost cmake curl freetype2 glew libpng libvorbis openal-soft physfs sdl2 glm sdl2-image"
+
+PKG_VER=0.6.3
+SOURCE="https://github.com/SuperTux/supertux/releases/download/v$PKG_VER/SuperTux-v$PKG_VER-Source.tar.gz"
+
+ADDITIONAL="
+missing-include-for-FLT_EPSILON.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build() {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ -DINSTALL_SUBDIR_BIN=bin
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --build build --target install
+}