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