# Maintainer: Saghm Rossi # Contributor: Peter Hoeg # Contributer: Vincent Demeester # Contributer: Alex Ogier pkgname=ruby-build pkgver=20240423 pkgrel=1 _file="${pkgname}-v${pkgver}.tar.gz" pkgdesc="Compile and install Ruby" arch=('any') url="https://github.com/rbenv/ruby-build" license=('MIT') depends=('bash') optdepends=( 'git: install ruby from git' 'libyaml: install recent versions of mri' ) source=($_file::$url/archive/v$pkgver.tar.gz) sha512sums=('f476bdbc3f800944ca5af1b0b4259f7551ca4d21e773cea0608688099a4d2a976b7713d61ecbad8b84577d4a90b63083a9e185d9a3b7348ff06615c4da84b429') build() { cd $srcdir tar -x --strip-components 1 -zf "${_file}" } package() { cd $srcdir install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" PREFIX="$pkgdir/usr" ./install.sh }