rvvm, add recipe for 0.7~git (#12173)

Co-authored-by: X512 <danger_mail@list.ru>
This commit is contained in:
Schrijvers Luc
2025-04-24 07:29:58 +00:00
committed by GitHub
parent 5a05c99126
commit 5c477d91ae

View File

@@ -0,0 +1,46 @@
SUMMARY="The RISC-V Virtual Machine"
DESCRIPTION="RVVM is a virtual machine / emulator for RISC-V guests, which emphasizes on \
performance, security, lean code and portability. It already runs a lot of guest operating \
systems, including Linux, Haiku, FreeBSD, OpenBSD, etc. It also aims to run RISC-V applications \
on a foreign-arch host without full OS guest & isolation (Userland emulation)."
HOMEPAGE="https://github.com/LekKit/RVVM"
COPYRIGHT="2022-2025 LekKit and contributors"
LICENSE="GNU GPL v3
MPL v2.0"
REVISION="1"
srcGitRev="181fd23930352e0d1ab86662d48f32abda25abd6"
SOURCE_URI="https://github.com/LekKit/RVVM/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="9a652684f0f656a6e95026ae0e7933feca4853b732b22656d969174421ea17a5"
SOURCE_DIR="RVVM-$srcGitRev"
ARCHITECTURES="?all x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
rvvm$secondaryArchSuffix = $portVersion
cmd:rvvm_x86_64 = $portVersion
lib:librvvm$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
make $jobArgs
}
INSTALL()
{
install -d $prefix/bin $libDir
install -t $prefix/bin release.haiku.x86_64/rvvm_x86_64
install -t $libDir release.haiku.x86_64/librvvm.so
}