diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-05-07 06:16:23 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-05-07 08:41:49 -0300 |
commit | 0376cdd9964e51be290270c6148910eae89ac366 (patch) | |
tree | f1ce4c07b502b015fbe8aca15e8857e0a950a49d | |
parent | 5c1967ca30a2c1775dfb05ca088aaa40cf08c8dc (diff) | |
download | abslibre-0376cdd9964e51be290270c6148910eae89ac366.tar.gz abslibre-0376cdd9964e51be290270c6148910eae89ac366.tar.bz2 abslibre-0376cdd9964e51be290270c6148910eae89ac366.zip |
ruby2.1-bundler: add new package to [pcr]
-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 +} |