1 abinfo "Generating gem package via patches gemspec ..."
2 gem build "$PKGNAME".gemspec
4 GEMDIR="$(ruby -e'puts Gem.default_dir')"
5 abinfo "Building and installing Ruby (Gem) package ..."
6 gem install --ignore-dependencies --no-user-install \
7 -i "$PKGDIR/$GEMDIR" -n "$PKGDIR/usr/bin" "$PKGNAME-$PKGVER.gem"
9 abinfo 'Removing Gem cache from $PKGDIR ...'
10 rm -v "$PKGDIR/$GEMDIR/cache/"*