lilac/repo/rbenv/PKGBUILD

43 lines
1.2 KiB
Bash
Raw Permalink Normal View History

2024-12-21 07:02:49 +00:00
# Maintainer: Pranav Sharma <pranav.sharma.ama@gmail.com>
# Contributor: Chris Down <chris@chrisdown.name>
2023-05-15 07:01:17 +00:00
# Contributor: Vladimir Chizhov <jagoterr@gmail.com>
# Contributor: Jochen Schalanda <jochen+aur (-AT-) schalanda.name>
# Contributor: Ichimonji10 <Ichimonji10@gmail.com>
pkgname=rbenv
2024-12-21 07:02:49 +00:00
pkgver=1.3.0
pkgrel=1
2023-05-15 07:01:17 +00:00
pkgdesc="Simple Ruby version manager"
arch=('any')
url="https://github.com/rbenv/rbenv"
license=('MIT')
depends=()
optdepends=('ruby-build')
conflicts=('rbenv-git')
install="rbenv.install"
noextract=("v${pkgver}")
source=("https://github.com/rbenv/rbenv/tarball/v${pkgver}")
2024-12-21 07:02:49 +00:00
md5sums=('a7a67a60320cde5616b3a532a24f3756')
2023-05-15 07:01:17 +00:00
build() {
cd $srcdir
tar -x --strip-components 1 -zf "v$pkgver"
}
package() {
cd $srcdir
mkdir -p $pkgdir/usr/bin
mkdir -p $pkgdir/usr/share/doc/$pkgname
mkdir -p $pkgdir/usr/share/licenses/$pkgname
mkdir -p $pkgdir/usr/lib/rbenv/completions
mkdir -p $pkgdir/usr/lib/rbenv/libexec
install -m 644 ./README.md $pkgdir/usr/share/doc/$pkgname
install -m 644 ./LICENSE $pkgdir/usr/share/licenses/$pkgname
install -m 644 ./completions/* $pkgdir/usr/lib/rbenv/completions/
install -m 755 ./libexec/* $pkgdir/usr/lib/rbenv/libexec/
ln -s /usr/lib/rbenv/libexec/rbenv $pkgdir/usr/bin/
}