diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2021-07-20 07:43:12 -0700 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-22 22:30:55 +0200 |
commit | 281cff784506312b79d7e6447b5a881396eaa29c (patch) | |
tree | 37d526a7d20a721e129faf7f7a4b0fc547537d6a /Ports/mysthous/package.sh | |
parent | bcd96df2acc95bfe606ac39c567bb7b476e5eabf (diff) | |
download | serenity-281cff784506312b79d7e6447b5a881396eaa29c.zip |
Ports: Add ScummVM game Hi-Res Adventure #1: Mystery House
Diffstat (limited to 'Ports/mysthous/package.sh')
-rwxr-xr-x | Ports/mysthous/package.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Ports/mysthous/package.sh b/Ports/mysthous/package.sh new file mode 100755 index 0000000000..795fdcd45d --- /dev/null +++ b/Ports/mysthous/package.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=mysthous +version="1.0" +files="https://downloads.scummvm.org/frs/extras/Mystery%20House/MYSTHOUS.zip ${port}-${version}.zip ada412228a149394489b28c6c7f9ebab0722b52e04732fd0aa22949673cfa3a0" +auth_type=sha256 +depends="scummvm" + +resource_path="/usr/local/share/games/${port}-${version}" + +launcher_name="Hi-Res Adventure #1: Mystery House" +launcher_category=Games +launcher_command="/usr/local/bin/scummvm --path=${resource_path} hires1-apple2" + +build() { + : +} + +pre_fetch() { + run_nocd mkdir -p ${workdir} +} + +post_fetch() { + run_nocd rsync -a ./* ${workdir} --exclude=${workdir} --exclude=package.sh --exclude=${port}-${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}/MYSTHOUS.DSK ${target_dir} +} |