1 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
3 _gemname=gobject-introspection
7 pkgdesc='Ruby/GObjectIntrospection is a Ruby binding of GObjectIntrospection.'
9 url='http://ruby-gnome2.sourceforge.jp/'
11 depends=(ruby gobject-introspection-runtime ruby-glib2=$pkgver)
12 makedepends=(gobject-introspection ruby-native-package-installer)
14 source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
15 noextract=($_gemname-$pkgver.gem)
16 sha256sums=('cee2401c83f1f0409e6d25fac7ebbf667d653609246d8d00e79a93143a285509')
19 local _gemdir="$(ruby -e'puts Gem.default_dir')"
20 local _platform="$(gem env platform | cut -d':' -f2)"
21 local _extension_api_version="$(ruby -e'puts Gem.extension_api_version')"
22 gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
23 rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" \
24 ${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/ext/gobject-introspection/*.o \
25 "${pkgdir}/${_gemdir}/extensions/${_platform}/${_extension_api_version}/${_gemname}-${pkgver}/gem_make.out" \
26 "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/ext/gobject-introspection/Makefile"