lilac/repo/ruby-build/PKGBUILD

31 lines
902 B
Bash
Raw Normal View History

2023-05-15 06:23:32 +00:00
# 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
2023-09-13 04:00:55 +00:00
pkgver=20230912
2023-05-15 06:23:32 +00:00
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)
2023-09-13 04:00:55 +00:00
sha512sums=('5b5cad5f46783a6917e91b868abfcc4f762df42c0f1ad95a0e4369c82cd7ef8790207b20635136ee80162a807bab9abc7bdaab4fa5724de9e6641ed6b896182b')
2023-05-15 06:23:32 +00:00
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
}