blob: 840777aad05b9f214efa0c7ec2949b65068d3e28 (
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
|
# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
pkgname=ruby-bundler
pkgver=1.0.7
pkgrel=1
pkgdesc="Is manages an application's dependencies through its entire life, across many machines, systematically and repeatably."
arch=(any)
url="http://gembundler.com/"
license=('MIT')
depends=('ruby')
makedepends=(rubygems)
source=(http://gems.rubyforge.org/gems/bundler-$pkgver.gem)
noextract=(bundler-$pkgver.gem)
md5sums=('6ca4f832d5c5271a1ee41b788c6868c4')
build() {
cd $srcdir
# _gemdir is defined inside build() because if ruby[gems] is not installed on the system
# makepkg will exit with an error when sourcing the PKGBUILD
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
gem install --ignore-dependencies -i "$pkgdir$_gemdir" bundler-$pkgver.gem
mv -t $pkgdir/usr/ $pkgdir$_gemdir/bin
}
|