1 # Generated by gem2arch (https://github.com/anatol/gem2arch)
2 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
8 pkgdesc='Ruby/GLib2 is a Ruby binding of GLib-2.x.'
10 url='http://ruby-gnome2.sourceforge.jp/'
12 depends=(ruby glib2 ruby-pkg-config ruby-native-package-installer)
14 source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
15 noextract=($_gemname-$pkgver.gem)
16 sha256sums=('57ec9a8ed491913a90d3b8264b204aa1608986a0bac64f62ea8c93f51749f396')
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 --no-document --ignore-dependencies --no-user-install -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/glib2/*.o \
25 "${pkgdir}/${_gemdir}/extensions/${_platform}/${_extension_api_version}/${_gemname}-${pkgver}/gem_make.out" \
26 "${pkgdir}/${_gemdir}/extensions/${_platform}/${_extension_api_version}/${_gemname}-${pkgver}/mkmf.log" \
27 "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/ext/glib2/Makefile"