summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorLekKit <50500857+LekKit@users.noreply.github.com>2023-04-22 00:46:02 +0300
committerJelle Raaijmakers <jelle@gmta.nl>2023-04-26 12:48:56 +0200
commit12730cefceaf1142e84c516356d7821296a69be1 (patch)
tree00ac02220254bebfd1c1bc679a0b92d22a245d69 /Ports
parentac435f914c2461691263b1becc64854f9de2fddd (diff)
downloadserenity-12730cefceaf1142e84c516356d7821296a69be1.zip
Ports: Add RVVM port
Diffstat (limited to 'Ports')
-rw-r--r--Ports/AvailablePorts.md1
-rwxr-xr-xPorts/rvvm/package.sh16
2 files changed, 17 insertions, 0 deletions
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
+}