pkg(ruby-3.0.1): add ruby 3.0.1 (#242)
Co-authored-by: Vargas, Dan <dan.vargas@frostbank.com>
This commit is contained in:
parent
37946d8542
commit
f2973f0536
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PREFIX=$(realpath $(dirname $0))
|
||||||
|
|
||||||
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
|
||||||
|
# Download and extract ruby
|
||||||
|
curl "https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.1.tar.gz" -o ruby.tar.gz
|
||||||
|
tar xzf ruby.tar.gz --strip-components=1
|
||||||
|
rm ruby.tar.gz
|
||||||
|
|
||||||
|
# Autoconf based
|
||||||
|
./configure --prefix "$PREFIX"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install -j$(nproc)
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
cd ..
|
||||||
|
rm -rf build
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Path to ruby binary
|
||||||
|
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"language": "ruby",
|
||||||
|
"version": "3.0.1",
|
||||||
|
"aliases": ["ruby3", "rb"]
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Run ruby script with args
|
||||||
|
ruby "$@"
|
|
@ -0,0 +1 @@
|
||||||
|
puts("OK")
|
Loading…
Reference in New Issue