mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:57:46 +00:00
Ports: Add port for mruby
This commit is contained in:
parent
16ad297078
commit
0f3f814945
4 changed files with 55 additions and 0 deletions
25
Ports/mruby/package.sh
Executable file
25
Ports/mruby/package.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=mruby
|
||||
version=3.0.0
|
||||
files="https://github.com/mruby/mruby/archive/refs/tags/${version}.tar.gz mruby-${version}.tar.gz 95b798cdd931ef29d388e2b0b267cba4dc469e8722c37d4ef8ee5248bc9075b0"
|
||||
auth_type="sha256"
|
||||
|
||||
build_config="serenity"
|
||||
build_dir="build/${build_config}"
|
||||
|
||||
build() {
|
||||
unset CC
|
||||
unset AR
|
||||
unset LD
|
||||
unset CXX
|
||||
export MRUBY_CONFIG="$build_config"
|
||||
run rake
|
||||
}
|
||||
|
||||
install() {
|
||||
run cp "${build_dir}/bin/mirb" "${SERENITY_INSTALL_ROOT}/bin/"
|
||||
run cp "${build_dir}/bin/mrbc" "${SERENITY_INSTALL_ROOT}/bin/"
|
||||
run cp "${build_dir}/bin/mruby" "${SERENITY_INSTALL_ROOT}/bin/"
|
||||
run cp "${build_dir}/lib/libmruby.a" "${SERENITY_INSTALL_ROOT}/usr/lib/"
|
||||
run cp "${build_dir}/lib/libmruby_core.a" "${SERENITY_INSTALL_ROOT}/usr/lib/"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue