diff options
author | Achilleas Pipinellis | 2015-06-30 20:40:00 +0300 |
---|---|---|
committer | Achilleas Pipinellis | 2015-06-30 20:40:00 +0300 |
commit | f3b7d737762e9475419470e98bd6597832607c62 (patch) | |
tree | 385e57789c90fc280d270ed0892b98f7ffe49db3 | |
parent | f8ed363892b516f88392ccc43b2409d728a6c4a6 (diff) | |
download | aur-f3b7d737762e9475419470e98bd6597832607c62.tar.gz |
Quote srcdir, follow ruby-bundler example.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 16 insertions, 12 deletions
@@ -1,7 +1,7 @@ pkgbase = ruby-net-ssh - pkgdesc = Net::SSH: a pure-Ruby implementation of the SSH2 client protocol. + pkgdesc = A pure-Ruby implementation of the SSH2 client protocol. pkgver = 2.9.2 - pkgrel = 1 + pkgrel = 2 url = https://rubygems.org/gems/net-ssh arch = any license = GPL @@ -3,20 +3,24 @@ # Contributor: gem2arch 0.1 pkgname=ruby-net-ssh pkgver=2.9.2 -_pkgname="net-ssh" -pkgrel=1 -pkgdesc="Net::SSH: a pure-Ruby implementation of the SSH2 client protocol." +_gemname=${pkgname#ruby-} +pkgrel=2 +pkgdesc="A pure-Ruby implementation of the SSH2 client protocol." arch=(any) -url="https://rubygems.org/gems/net-ssh" +url="https://rubygems.org/gems/${_gemname}" license=("GPL") depends=('ruby') -source=(https://rubygems.org/downloads/$_pkgname-$pkgver.gem) - -noextract=($_pkgname-$pkgver.gem) +source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) package() { - cd $srcdir - local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" - gem install --ignore-dependencies --no-user-install -i "$pkgdir$_gemdir" ${_pkgname}-$pkgver.gem + cd "$srcdir" + + local _gemdir="$(ruby -e'puts Gem.default_dir')" + HOME="/tmp" GEM_HOME="$_gemdir" GEM_PATH="$_gemdir" gem install \ + --no-user-install --ignore-dependencies \ + -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem" + + rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" } md5sums=('ac7574a89e2b422468d98f5387ceb41e') |