# Maintainer: Saghm Rossi # Contributor: Peter Hoeg # Contributer: Vincent Demeester # Contributer: Alex Ogier pkgname=ruby-build pkgver=20240416 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=('8fa39f8cef3540b7b694bcd261ca145160f0493b63c3f91a4e9da4828b49f2d5a621d4922bfefba8491fec2bb15ddc66b373de3534123148bd43ebbf7525b715') 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 }