lilac/repo/ruby-build/PKGBUILD

31 lines
904 B
Bash

# Maintainer: Saghm Rossi <saghmrossi@gmail.com>
# Contributor: Peter Hoeg <first name at last name dot com>
# Contributer: Vincent Demeester <vincent@sbr.io>
# Contributer: Alex Ogier <alex.ogier@gmail.com>
pkgname=ruby-build
pkgver=20230914.1
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=('3f3e1b0675c8304d12f2760fb9a7e3424be2e5eb6df27e6b9d5bcf8a2e10b14b2f3b4ca468edf1099e85997de58f415d8ecfe48b5eb6c4acfd6c475d247c3fcd')
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
}