summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ed788d029d4..532b99babc1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=ruby-azure-signature
pkgver=0.2.3
-pkgrel=2
+pkgrel=3
pkgdesc="The azure-signature library generates storage signatures for Microsoft Azure's cloud platform"
arch=(any)
url="http://github.com/ManageIQ/azure-signature"
@@ -15,6 +15,8 @@ noextract=(${pkgname#ruby-}-$pkgver.gem)
sha512sums=('d48d48f09165981afccdcc02620c1ee9ffc8342cbfa929bb32b8e902a169ff35063818f77ebfd94d15fbeb7f8ba79c9d53823519eef89da1a9a35069d2db1933')
package() {
- cd "$srcdir"
- gem install --no-user-install --ignore-dependencies -i "$pkgdir$(ruby -rubygems -e'puts Gem.default_dir')" -n "$pkgdir/usr/bin" "${pkgname#ruby-}-$pkgver.gem"
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --no-user-install --ignore-dependencies -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" "${pkgname#ruby-}-$pkgver.gem"
+ rm "$pkgdir/$_gemdir/cache/${pkgname#ruby-}-$pkgver.gem"
+
}