summaryrefslogtreecommitdiff
path: root/repo/openttd
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
committerdavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
commitd2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch)
tree684a17eebf446aa1adab1097616f1882c8d51568 /repo/openttd
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
Diffstat (limited to 'repo/openttd')
-rw-r--r--repo/openttd/openttd.xibuild25
1 files changed, 25 insertions, 0 deletions
diff --git a/repo/openttd/openttd.xibuild b/repo/openttd/openttd.xibuild
new file mode 100644
index 0000000..db2ac42
--- /dev/null
+++ b/repo/openttd/openttd.xibuild
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+NAME="openttd"
+DESC="Open source version of the Transport Tycoon Deluxe simulator"
+
+MAKEDEPS="cmake fontconfig fluidsynth freetype2 icu libpng lzo ninja sdl2 xz zlib"
+
+PKG_VER=12.2
+SOURCE="https://cdn.openttd.org/openttd-releases/$PKG_VER/openttd-$PKG_VER-source.tar.xz"
+
+build() {
+ cmake -B build \
+ -G "Ninja" \
+ -DCMAKE_INSTALL_BINDIR=bin \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_DATADIR=share/games \
+ -DGLOBAL_DATA_DIR=share/games/openttd \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DReleaseBuild=ON
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --build build --target install
+}