From 5d514cbf527b6ccecad5e37c6826d8463fe68e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Alexandre=20Silva=20Delgado?= Date: Sun, 15 Sep 2013 15:37:33 -0300 Subject: updating ruby-bundler --- pcr/ruby-bundler/PKGBUILD | 34 ++++++++++++++++++---------------- pcr/ruby1-bundler/PKGBUILD | 27 +++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 16 deletions(-) create mode 100644 pcr/ruby1-bundler/PKGBUILD diff --git a/pcr/ruby-bundler/PKGBUILD b/pcr/ruby-bundler/PKGBUILD index a1fb32449..44a1a883b 100644 --- a/pcr/ruby-bundler/PKGBUILD +++ b/pcr/ruby-bundler/PKGBUILD @@ -1,22 +1,24 @@ -# Maintainer (Parabola): Márcio Silva # Contributor: Alexsandr Pavlov +# Maintainer (Parabola): Márcio Silva -pkgname=ruby-bundler -_gemname=${pkgname#ruby-} -pkgver=1.1.5 +_pkgname=bundler +pkgname=ruby-$_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://gembundler.com" -license=('MIT') -depends=('ruby' 'rubygems') -source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem) -noextract=(${_gemname}-${pkgver}.gem) -md5sums=('ecced17bc29a761db4ea5ca57b0d8795') +arch=any +url=http://gem$_pkgname.com +license=MIT +depends=ruby +source=http://rubygems.org/downloads/$_pkgname-$pkgver.gem +noextract=$_pkgname-$pkgver.gem +sha256sums=08b89047f7b829f3e197a28fb1bde74c3f5cfea1552f99dfba237fee30eaffe4 + +package() { + cd $srcdir -build() { - cd "${srcdir}" - export HOME=/tmp - local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" - gem install --no-user-install --ignore-dependencies -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem + local _gemdir=$(ruby -rubygems -e'puts Gem.default_dir') + HOME=/tmp gem install --no-user-install --ignore-dependencies\ + -i $pkgdir$_gemdir -n $pkgdir/usr/bin\ + $_pkgname-$pkgver.gem } diff --git a/pcr/ruby1-bundler/PKGBUILD b/pcr/ruby1-bundler/PKGBUILD new file mode 100644 index 000000000..d06f7af08 --- /dev/null +++ b/pcr/ruby1-bundler/PKGBUILD @@ -0,0 +1,27 @@ +# Contributor: Alexsandr Pavlov +# Maintainer (Parabola): Márcio Silva + +_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} +} -- cgit v1.2.3-2-g168b