blob: 8a81436b30d6f0d36d8419ae5aad10f39b057737 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Adrien Smith <adrien@panissupraomnia.dev>
# Contributor: Simon Kohlmeyer <simon.kohlmeyer@googlemail.com>
pkgname=rbenv-git
pkgver=1.2.0.r46.g52acbdf
pkgrel=1
pkgdesc="Simple Ruby version manager"
arch=('any')
url="https://github.com/rbenv/rbenv"
license=('MIT')
depends=('bash')
makedepends=('git')
optdepends=('ruby-build')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install="rbenv.install"
source=('git+https://github.com/rbenv/rbenv.git')
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "${pkgname%-git}"
install -Dm 644 ./LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 -t "$pkgdir/usr/lib/rbenv/completions/" ./completions/*
install -Dm 755 -t "$pkgdir/usr/lib/rbenv/libexec/" ./libexec/*
install -d "$pkgdir/usr/bin/"
ln -s /usr/lib/rbenv/libexec/rbenv "$pkgdir/usr/bin/"
install -Dm 644 rbenv.d/exec/gem-rehash/rubygems_plugin.rb \
"$pkgdir/usr/lib/rbenv/hooks/exec/gem-rehash/rubygems_plugin.rb"
install -m 644 rbenv.d/exec/gem-rehash.bash \
"$pkgdir/usr/lib/rbenv/hooks/exec/gem-rehash.bash"
}
|