diff options
author | Linus Groh <mail@linusgroh.de> | 2022-05-03 21:05:55 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-03 21:38:35 +0200 |
commit | 45995aaeb638a7cd08f71dd48e91e3049261d036 (patch) | |
tree | dcab6489e7a792a99ec166c6fb5c02c76f36e9c4 | |
parent | 5510b98dc8dda6910a892596ba380b60120efb04 (diff) | |
download | serenity-45995aaeb638a7cd08f71dd48e91e3049261d036.zip |
Ports: Add RISCVEmu
-rw-r--r-- | Ports/AvailablePorts.md | 1 | ||||
-rwxr-xr-x | Ports/RISCVEmu/package.sh | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 2236d922f5..7e2c820b9f 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -185,6 +185,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`vlang`](vlang/) | V programming language | weekly.2021.31 | https://github.com/vlang/v | | [`radare2`](radare2/) | radare2 reverse engineering framework | 5.4.0-git | https://github.com/radareorg/radare2 | | [`readline`](readline/) | GNU Readline Library | 8.1.2 | https://tiswww.case.edu/php/chet/readline/rltop.html | +| [`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.2 | https://www.ruby-lang.org/ | | [`sam`](sam/) | Software Automatic Mouth (SAM) | c86ea39 | https://github.com/vidarh/SAM | diff --git a/Ports/RISCVEmu/package.sh b/Ports/RISCVEmu/package.sh new file mode 100755 index 0000000000..ac69310081 --- /dev/null +++ b/Ports/RISCVEmu/package.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=RISCVEmu +version=ad8ad6a0eb8591385318b2ec1cffde6078ff0185 +files="https://github.com/IdanHo/RISCVEmu/archive/${version}.tar.gz RISCVEmu-${version}.tar.gz b4636284dd407e490ba6dd783b65caf8c019785285d6a86aece3860465276b33" +auth_type="sha256" + +build() { + run "${CXX}" -o RISCVEmu RISCVEmu.cpp RISCV.cpp +} + +install() { + run mkdir -p "${SERENITY_INSTALL_ROOT}/usr/local/bin" + run cp RISCVEmu "${SERENITY_INSTALL_ROOT}/usr/local/bin" +} |