desktop/src/ruby/pkg.sh

25 lines
580 B
Bash
Raw Normal View History

2024-08-10 23:17:03 +00:00
NAME="ruby"
DESC="Ruby development environment"
VERSION="3.2.2"
FILES=("https://cache.ruby-lang.org/pub/ruby/${VERSION%.*}/ruby-$VERSION.tar.xz")
HASHES=("377853f31d10bfe37c58b8537fc3e05d")
DEPENDS=(
"libyaml" "libxcrypt"
"libffi" "gmp"
)
PACKAGE() {
tar xf $NAME-$VERSION.tar.xz
cd $NAME-$VERSION
./configure --prefix=/usr \
--enable-shared \
--without-valgrind \
--without-baseruby \
--docdir=/usr/share/doc/ruby-$VERSION
make && make capi
make DESTDIR="$ROOTDIR" install
cd .. && rm -r $NAME-$VERSION
}