summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1868d44f0f06dd489dac27911f86878a072611f7 (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
# Maintainer: Chris Down <chris@chrisdown.name>
# Contributor: Vladimir Chizhov <jagoterr@gmail.com>
# Contributor: Jochen Schalanda <jochen+aur (-AT-) schalanda.name>
# Contributor: Ichimonji10 <Ichimonji10@gmail.com>
pkgname=rbenv
pkgver=1.1.2
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=('0788baac70465ed609700834b5826a6c')

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/
}