diff options
-rw-r--r-- | pcr/ruby2.1-bundler/PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pcr/ruby2.1-bundler/PKGBUILD b/pcr/ruby2.1-bundler/PKGBUILD new file mode 100644 index 000000000..f80b99c40 --- /dev/null +++ b/pcr/ruby2.1-bundler/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer (Arch): Jonne Haß <me@jhass.eu> + +pkgname=ruby2.1-bundler +_gemname=${pkgname#ruby2.1-} +pkgver=1.9.6 +pkgrel=1 +pkgdesc="Manages an application's dependencies through its entire life, across many machines, systematically and repeatably." +arch=('any') +url="http://bundler.io" +license=('MIT') +depends=('ruby2.1') +source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem) +noextract=(${_gemname}-${pkgver}.gem) +sha256sums=('16ea402865debde4cb64e63f70a0f5bd464649a29ab256579a7ceb42cca45ee4') + +package() { + cd "${srcdir}" + + local _gemdir="$(ruby-2.1 -rubygems -e'puts Gem.default_dir')" + HOME=/tmp GEM_HOME="$_gemdir" GEM_PATH="$_gemdir" gem-2.1 install --no-user-install --ignore-dependencies \ + --no-ri --no-rdoc -i "${pkgdir}${_gemdir}" ${_gemname}-${pkgver}.gem + + install -d $pkgdir/usr/bin/ + ln -s $_gemdir/bin/bundle $pkgdir/usr/bin/bundle-2.1 +} |