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
|
2024-02-21 13:01:15 +00:00
|
|
|
pkgver=20240221
|
2023-11-15 02:28:54 +00:00
|
|
|
pkgrel=1
|
2023-05-15 06:23:32 +00:00
|
|
|
_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)
|
2024-02-21 13:01:15 +00:00
|
|
|
sha512sums=('ba189a408966cb89616b04cb667863289a6781edb3b42f9884c6122d54658a99f1556c85865868463b029966f4ead546fd71eac6f085c3b2764e0a08be9bde51')
|
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
|
|
|
|
}
|