From be3ab7f1cf7fa10b7ca1a7f33cf7c5b4a382e429 Mon Sep 17 00:00:00 2001 From: Lilac Date: Mon, 15 May 2023 07:01:17 +0000 Subject: [PATCH] rbenv: auto updated to 1.2.0-1 --- repo/rbenv/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++++++++ repo/rbenv/rbenv.install | 10 ++++++++++ 2 files changed, 51 insertions(+) create mode 100644 repo/rbenv/PKGBUILD create mode 100644 repo/rbenv/rbenv.install diff --git a/repo/rbenv/PKGBUILD b/repo/rbenv/PKGBUILD new file mode 100644 index 0000000..4bbaa2e --- /dev/null +++ b/repo/rbenv/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Chris Down +# Contributor: Vladimir Chizhov +# Contributor: Jochen Schalanda +# Contributor: Ichimonji10 +pkgname=rbenv +pkgver=1.2.0 +pkgrel=1 +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}") +md5sums=('3ef4eea80b9a4f85f3978beb25665a2a') + +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/ +} diff --git a/repo/rbenv/rbenv.install b/repo/rbenv/rbenv.install new file mode 100644 index 0000000..4968582 --- /dev/null +++ b/repo/rbenv/rbenv.install @@ -0,0 +1,10 @@ +post_install() { + echo 'Your shell must be initialized before rbenv will function correctly.' + echo 'Run the following, and consider adding it to your ~/.bashrc:' + echo ' eval "$(rbenv init -)"' +} + +post_remove() { + echo 'Remove the following from your ~/.bashrc, if present:' + echo ' eval "$(rbenv init -)"' +}