summaryrefslogtreecommitdiff
path: root/pcr/ruby1-bundler/PKGBUILD
blob: 1f965a1ba453f8f796d70f3262528f766094946c (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
# Contributor (Arch): Alexsandr Pavlov <kidoz at mail dot ru>
# Maintainer: Márcio Silva <coadde@parabola.nu>

_pkgname=bundler
pkgname=ruby1-$_pkgname
pkgver=1.3.5
pkgrel=1
pkgdesc="Is manages an application's dependencies through its entire life, across many machines, systematically and repeatably."
arch=any
url=http://gem$_pkgname.com
license=MIT
depends=ruby1
source=http://rubygems.org/downloads/$_pkgname-$pkgver.gem
noextract=$_pkgname-$pkgver.gem
sha256sums=08b89047f7b829f3e197a28fb1bde74c3f5cfea1552f99dfba237fee30eaffe4

package() {
  cd $srcdir

  local _gemdir=$(ruby1 -rubygems -e'puts Gem.default_dir')
  HOME=/tmp gem1 install --no-user-install --ignore-dependencies\
  -i $pkgdir$_gemdir -n $pkgdir/usr/bin\
  $_pkgname-$pkgver.gem

  msg "renaming $_pkgname to ${_pkgname}1"
  mv -v $pkgdir/usr/bin/${_pkgname%r}{,1}
}