summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorColin Arnott2018-01-29 07:40:54 +0000
committerColin Arnott2018-01-29 07:40:54 +0000
commitfb2040f4df9489f8096e79808747dc89e5eb5031 (patch)
treedfaec0b225d92ed965190a9e47949c6a9b151601 /PKGBUILD
parent60ae00f61e87998c0a92b977fc5706a79d5989bc (diff)
downloadaur-ruby-azure-signature.tar.gz
remove gemfile from pkg
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"
+
}