diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2021-07-20 08:03:03 -0700 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-22 22:30:55 +0200 |
commit | 59e303cc5427628690bbd3a361ad3a23270b1d99 (patch) | |
tree | eaa63a7d3e4408d139a702d069500360b388a016 /Ports | |
parent | 281cff784506312b79d7e6447b5a881396eaa29c (diff) | |
download | serenity-59e303cc5427628690bbd3a361ad3a23270b1d99.zip |
Ports: Add ScummVM game Dráscula: The Vampire Strikes Back
Diffstat (limited to 'Ports')
-rw-r--r-- | Ports/AvailablePorts.md | 1 | ||||
-rwxr-xr-x | Ports/drascula/package.sh | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index a59e5ef175..57208a770b 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -26,6 +26,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`dmidecode`](dmidecode/) | dmidecode | 3.3 | https://github.com/mirror/dmidecode | | [`doom`](doom/) | DOOM | | https://github.com/SerenityOS/SerenityDOOM | | [`dosbox-staging`](dosbox-staging/) | DOSBox Staging | 0.76.0 | https://dosbox-staging.github.io/ | +| [`drascula`](drascula/) | Dráscula: The Vampire Strikes Back | 1.0 | https://www.scummvm.org/games/#games-drascula | | [`dropbear`](dropbear/) | Dropbear SSH | 2019.78 | https://dropbear.nl/mirror/dropbear.html | | [`dungeonrush`](dungeonrush/) | DungeonRush | 1.1-beta | https://github.com/Rapiz1/DungeonRush | | [`ed`](ed/) | GNU ed | 1.15 | https://www.gnu.org/software/ed/ | diff --git a/Ports/drascula/package.sh b/Ports/drascula/package.sh new file mode 100755 index 0000000000..036889df8e --- /dev/null +++ b/Ports/drascula/package.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=drascula +version="1.0" +files="https://downloads.scummvm.org/frs/extras/Drascula_%20The%20Vampire%20Strikes%20Back/drascula-1.0.zip ${port}-${version}.zip b731f6cb5a22ba8b4c3b3362f570b9a10a67b6cb0b395394b19a94b36e4e42de" +auth_type=sha256 +depends="scummvm" + +resource_path="/usr/local/share/games/${port}-${version}" + +launcher_name="Dráscula: The Vampire Strikes Back" +launcher_category=Games +launcher_command="/usr/local/bin/scummvm --path=${resource_path} drascula" + +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}/Packet.001 ${target_dir} +} |