Ports: Add ScummVM game The Griffon Legend

This commit is contained in:
Kenneth Myhra 2021-07-20 06:58:39 -07:00 committed by Gunnar Beutner
parent f11fc28351
commit bcd96df2ac
2 changed files with 32 additions and 0 deletions

View file

@ -48,6 +48,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`gnupg`](gnupg/) | GnuPG | 2.3.0 | https://gnupg.org/software/index.html |
| [`gnuplot`](gnuplot/) | Gnuplot | 5.2.8 | http://www.gnuplot.info/ |
| [`grep`](grep/) | GNU Grep | 2.5.4 | https://www.gnu.org/software/grep/ |
| [`griffon`](griffon/) | The Griffon Legend | 1.0 | https://www.scummvm.org/games/#games-griffon |
| [`harfbuzz`](harfbuzz/) | HarfBuzz | 2.8.1 | https://github.com/harfbuzz/harfbuzz |
| [`hatari`](hatari/) | Atari ST/STE/TT/Falcon emulator | 2.4.0-devel | https://hatari.tuxfamily.org/ |
| [`imgcat`](imgcat/) | imgcat | 2.5.0 | https://github.com/eddieantonio/imgcat |

31
Ports/griffon/package.sh Executable file
View file

@ -0,0 +1,31 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=griffon
version="1.0"
files="https://downloads.scummvm.org/frs/extras/Griffon%20Legend/${port}-${version}.zip ${port}-${version}.zip 0aad5fb10f51afb5c121cf04cc86539a6f0d89db85809f9e1767dfdc8d3191a4"
auth_type=sha256
depends="scummvm"
resource_path="/usr/local/share/games/${port}-${version}"
launcher_name="The Griffon Legend"
launcher_category=Games
launcher_command="/usr/local/bin/scummvm --path=${resource_path} griffon"
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 rsync -a ${workdir}/* ${target_dir}
}