# Maintainer: PktSurf <smlinux@pktsurf.in>
app=ruby
version=3.0.5
build=1sml
homepage="http://www.ruby-lang.org/"
download="https://cache.ruby-lang.org/pub/ruby/3.0/ruby-$version.tar.gz"
desc="Interpreted object-oriented scripting language"
requires="gmp"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix= \
    --enable-shared \
    --enable-pthread \
    --without-jemalloc \
    --disable-rpath \
    --with-mantype=man \
    --disable-install-doc \
    --disable-install-capi 

  make
  make install DESTDIR=$pkg

  cp BSDL COPYING GPL LEGAL $pkgdocs/

  mkfinalpkg
}

sha512sums="
ae9bbe0f458cfd0a4642ca3f31edd245181e71ecb9922edc6468ac3c913e04632b1774c024889b10be3608a05f88e9abb728b366a969af9c7d4bf3a7a1aee5d4  ruby-3.0.5.tar.lz
"
