summaryrefslogtreecommitdiff
path: root/Ports/soltys/package.sh
diff options
context:
space:
mode:
authorKenneth Myhra <kennethmyhra@gmail.com>2021-07-20 10:16:20 -0700
committerGunnar Beutner <gunnar@beutner.name>2021-07-22 22:30:55 +0200
commitcc45ccbd9bec179c7897d4178e1b1f0af04b5ce9 (patch)
treec5900163f404971936f2b599e9c57e8ee73a527b /Ports/soltys/package.sh
parentd84102de99fc6c11207da46909b71e5d94ff358d (diff)
downloadserenity-cc45ccbd9bec179c7897d4178e1b1f0af04b5ce9.zip
Ports: Add ScummVM game Soltys
Diffstat (limited to 'Ports/soltys/package.sh')
-rwxr-xr-xPorts/soltys/package.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/Ports/soltys/package.sh b/Ports/soltys/package.sh
new file mode 100755
index 0000000000..d5566e2b6e
--- /dev/null
+++ b/Ports/soltys/package.sh
@@ -0,0 +1,31 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=soltys
+version="1.0"
+files="https://downloads.scummvm.org/frs/extras/Soltys/soltys-en-v1.0.zip ${port}-en-v${version}.zip 87b89e654b8a5b8ebe342cb4c5c6049ab9a43a5efb474d9c49bafb77dcce48f6"
+auth_type=sha256
+depends="scummvm"
+
+resource_path="/usr/local/share/games/${port}-${version}"
+
+launcher_name="Soltys"
+launcher_category=Games
+launcher_command="/usr/local/bin/scummvm --path=${resource_path} soltys"
+
+build() {
+ :
+}
+
+pre_fetch() {
+ run_nocd mkdir -p ${workdir}
+}
+
+post_fetch() {
+ run_nocd rsync -a ./* ${workdir} --exclude=package.sh --exclude=${workdir} --exclude=${port}-en-v${version}.zip --remove-source-files
+ run_nocd find . -depth -type d -empty -delete
+}
+
+install() {
+ target_dir="${SERENITY_INSTALL_ROOT}${resource_path}"
+ run_nocd mkdir -p ${target_dir}
+ run_nocd cp ${workdir}/* ${target_dir}
+}