1 # Generated by gem2arch (https://github.com/anatol/gem2arch)
2 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
3 # Contributor: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
9 pkgdesc='Ruby/Pango is a Ruby binding of pango-1.x.'
11 url='http://ruby-gnome2.sourceforge.jp/'
13 depends=(ruby pango ruby-cairo gobject-introspection ruby-cairo-gobject=$pkgver ruby-gobject-introspection=$pkgver)
15 source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
16 noextract=($_gemname-$pkgver.gem)
17 sha256sums=('8729681d683388862580093316f71fa7036094facf01223b1285d33b3370b2de')
20 local _gemdir="$(ruby -e'puts Gem.default_dir')"
21 local _platform="$(gem env platform | cut -d':' -f2)"
22 local _extension_api_version="$(ruby -e'puts Gem.extension_api_version')"
23 gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
24 rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" \
25 ${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/ext/pango/*.o \
26 ${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/ext/pango/Makefile \
27 "${pkgdir}/${_gemdir}/extensions/${_platform}/${_extension_api_version}/${_gemname}-${pkgver}/gem_make.out" \
28 "${pkgdir}/${_gemdir}/extensions/${_platform}/${_extension_api_version}/${_gemname}-${pkgver}/mkmf.log"