PKGBUILD 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Maintainer (aur): Chris Down <chris@chrisdown.name>
  2. # Contributor: Vladimir Chizhov <jagoterr@gmail.com>
  3. # Contributor: Jochen Schalanda <jochen+aur (-AT-) schalanda.name>
  4. # Contributor: Ichimonji10 <Ichimonji10@gmail.com>
  5. # Maintainer: Aurélien Desbrières <aurelien@hackers.camp>
  6. # parabola changes and rationale:
  7. # no changes.
  8. pkgname=rbenv
  9. pkgver=1.1.1
  10. pkgrel=1
  11. pkgdesc="Simple Ruby version manager"
  12. arch=('any')
  13. url="https://github.com/rbenv/rbenv"
  14. license=('MIT')
  15. depends=()
  16. optdepends=('ruby-build')
  17. conflicts=('rbenv-git')
  18. install="rbenv.install"
  19. noextract=("v${pkgver}")
  20. source=("https://github.com/rbenv/rbenv/tarball/v${pkgver}")
  21. md5sums=('c95109ee20e70bf2955cf1cfffbcde75')
  22. build() {
  23. cd $srcdir
  24. tar -x --strip-components 1 -zf "v$pkgver"
  25. }
  26. package() {
  27. cd $srcdir
  28. mkdir -p $pkgdir/usr/bin
  29. mkdir -p $pkgdir/usr/share/doc/$pkgname
  30. mkdir -p $pkgdir/usr/share/licenses/$pkgname
  31. mkdir -p $pkgdir/usr/lib/rbenv/completions
  32. mkdir -p $pkgdir/usr/lib/rbenv/libexec
  33. install -m 644 ./README.md $pkgdir/usr/share/doc/$pkgname
  34. install -m 644 ./LICENSE $pkgdir/usr/share/licenses/$pkgname
  35. install -m 644 ./completions/* $pkgdir/usr/lib/rbenv/completions/
  36. install -m 755 ./libexec/* $pkgdir/usr/lib/rbenv/libexec/
  37. ln -s /usr/lib/rbenv/libexec/rbenv $pkgdir/usr/bin/
  38. }