diff --git a/repo/ruby-build/PKGBUILD b/repo/ruby-build/PKGBUILD new file mode 100644 index 0000000..f521f89 --- /dev/null +++ b/repo/ruby-build/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Saghm Rossi +# Contributor: Peter Hoeg +# Contributer: Vincent Demeester +# Contributer: Alex Ogier +pkgname=ruby-build +pkgver=20230512 +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=('72d02e1a952d386fe9215e7d5a053a81fce4a7de2a1bece9d32f0285a22c07a74abffcfc7583605e7e4baabdbc6adda53c78ec07dec08194ba5659fb47421b1d') + +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 +}