summaryrefslogtreecommitdiff
path: root/Ports/openttd-opensfx
diff options
context:
space:
mode:
authorGunnar Beutner <gunnar@beutner.name>2021-04-17 15:40:17 +0200
committerLinus Groh <mail@linusgroh.de>2021-04-23 20:15:49 +0200
commitae32abffe9c75c130951b8b81097b56c3821ffdd (patch)
tree2f15cf04cac3b38234e734453d8af3819f78d98a /Ports/openttd-opensfx
parent4b3336507823328292fbcc8bc1a1cb726974a1a1 (diff)
downloadserenity-ae32abffe9c75c130951b8b81097b56c3821ffdd.zip
Ports: Add openttd
Diffstat (limited to 'Ports/openttd-opensfx')
-rwxr-xr-xPorts/openttd-opensfx/package.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/Ports/openttd-opensfx/package.sh b/Ports/openttd-opensfx/package.sh
new file mode 100755
index 0000000000..0d4e0c4a5d
--- /dev/null
+++ b/Ports/openttd-opensfx/package.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=openttd-opensfx
+version=1.0.1
+workdir=.
+files="https://cdn.openttd.org/opensfx-releases/${version}/opensfx-${version}-all.zip opensfx-${version}-all.zip 37b825426f1d690960313414423342733520d08916f512f30f7aaf30910a36c5"
+auth_type=sha256
+
+build() {
+ # The ZIP file we downloaded contains a tarball.
+ run_nocd tar xf opensfx-${version}.tar
+}
+
+install() {
+ run_nocd mkdir -p ${SERENITY_INSTALL_ROOT}/usr/local/share/games/openttd/baseset/
+ run_nocd cp -a opensfx-${version}/* ${SERENITY_INSTALL_ROOT}/usr/local/share/games/openttd/baseset/
+}