From 12730cefceaf1142e84c516356d7821296a69be1 Mon Sep 17 00:00:00 2001 From: LekKit <50500857+LekKit@users.noreply.github.com> Date: Sat, 22 Apr 2023 00:46:02 +0300 Subject: [PATCH] Ports: Add RVVM port --- Ports/AvailablePorts.md | 1 + Ports/rvvm/package.sh | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 Ports/rvvm/package.sh diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 7fb01b2718..635e7782a9 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -235,6 +235,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`RISCVEmu`](RISCVEmu/) | A Basic C++ RISC-V Emulator | ad8ad6a | https://github.com/IdanHo/RISCVEmu | | [`rsync`](rsync/) | rsync | 3.1.3 | https://rsync.samba.org/ | | [`ruby`](ruby/) | Ruby | 3.0.4 | https://www.ruby-lang.org/ | +| [`rvvm`](rvvm/) | RVVM - The RISC-V Virtual Machine | 0.5 | https://github.com/LekKit/RVVM | | [`sam`](sam/) | Software Automatic Mouth (SAM) | c86ea39 | https://github.com/vidarh/SAM | | [`scummvm`](scummvm/) | ScummVM | 2.7.0 | https://www.scummvm.org/ | | [`sdl12-compat`](sdl12-compat/) | SDL2 compatibility layer for SDL 1.2 games | 1.2.56 | https://github.com/libsdl-org/sdl12-compat/ | diff --git a/Ports/rvvm/package.sh b/Ports/rvvm/package.sh new file mode 100755 index 0000000000..378ceb220f --- /dev/null +++ b/Ports/rvvm/package.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port='rvvm' +version='0.5' +archive_hash=3a1dbb91ad04f068078bc6c6c27cc5792eebc111907cb5a14bde158fe6e757c9 +files="https://github.com/LekKit/RVVM/archive/v$version.tar.gz rvvm.tar.gz $archive_hash" +auth_type='sha256' +workdir="RVVM-$version" +depends=('sdl12-compat') + +build() { + run make OS=SerenityOS USE_SDL=1 USE_NET=1 GIT_COMMIT=76796ba all lib +} + +install() { + run make OS=SerenityOS USE_SDL=1 USE_NET=1 GIT_COMMIT=76796ba DESTDIR="${DESTDIR}" install +}