Ports: Add ScummVM game Nippon Safes Inc

This commit is contained in:
Kenneth Myhra 2021-07-20 09:04:15 -07:00 committed by Gunnar Beutner
parent 924930f357
commit caca5b0b3e
2 changed files with 32 additions and 0 deletions

View file

@ -101,6 +101,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`nesalizer`](nesalizer/) | Nesalizer | | https://github.com/SerenityOS/nesalizer |
| [`nethack`](nethack/) | nethack | 3.6.6 | https://www.nethack.org/ |
| [`ninja`](ninja/) | Ninja | 1.8.2 | https://ninja-build.org/ |
| [`nippon`](nippon/) | Nippon Safes Inc. | 1.0 | https://www.scummvm.org/games/#games-nippon |
| [`npth`](npth/) | New GNU Portable Threads Library | 1.6 | https://gnupg.org/software/npth/index.html |
| [`ntbtls`](ntbtls/) | The Not Too Bad TLS Library | 0.2.0 | https://gnupg.org/software/ntbtls/index.html |
| [`nyancat`](nyancat/) | Nyancat | | https://github.com/klange/nyancat |

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

@ -0,0 +1,31 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=nippon
version="1.0"
files="https://downloads.scummvm.org/frs/extras/Nippon%20Safes/nippon-1.0.zip ${port}-${version}.zip 53e7e2c60065e4aed193169bbcdcfd1113fa68d3efe1c8240ba073c0e20d613f"
auth_type=sha256
depends="scummvm"
resource_path="/usr/local/share/games/${port}-${version}"
launcher_name="Nippon Safes Inc."
launcher_category=Games
launcher_command="/usr/local/bin/scummvm --path=${resource_path} nippon"
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}
}