ruby-build: auto updated to 20230512-1
This commit is contained in:
parent
b00bb4f730
commit
9ad11aeb7f
30
repo/ruby-build/PKGBUILD
Normal file
30
repo/ruby-build/PKGBUILD
Normal file
|
@ -0,0 +1,30 @@
|
|||
# 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=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
|
||||
}
|
Loading…
Reference in a new issue