# Maintainer: Anatol Pomozov _gemname=cairo-gobject pkgname=ruby-$_gemname pkgver=3.1.3 pkgrel=1 pkgdesc='Ruby/CairoGObject is a Ruby binding of cairo-gobject' arch=(x86_64) url='http://ruby-gnome2.sourceforge.jp/' license=(LGPL2.1) depends=(ruby ruby-cairo ruby-native-package-installer ruby-glib2=$pkgver) options=(!emptydirs) source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) noextract=($_gemname-$pkgver.gem) sha1sums=('0dd2af76252868c147aee99ad89bb5394bbcb3db') package() { local _gemdir="$(ruby -e'puts Gem.default_dir')" gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" }