From 0376cdd9964e51be290270c6148910eae89ac366 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 7 May 2015 06:16:23 -0300 Subject: ruby2.1-bundler: add new package to [pcr] --- pcr/ruby2.1-bundler/PKGBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pcr/ruby2.1-bundler/PKGBUILD 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ß + +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 +} -- cgit v1.2.3