archrelease: copy trunk to community-any
[ArchLinux/community.git] / ruby-pango / repos / community-x86_64 / PKGBUILD
blobbf10238b83489eb25d25d9e92c88e655839afe7d
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>
5 _gemname=pango
6 pkgname=ruby-$_gemname
7 pkgver=4.1.2
8 pkgrel=1
9 pkgdesc='Ruby/Pango is a Ruby binding of pango-1.x.'
10 arch=(x86_64)
11 url='http://ruby-gnome2.sourceforge.jp/'
12 license=(LGPL2.1)
13 depends=(ruby pango ruby-cairo gobject-introspection ruby-cairo-gobject=$pkgver ruby-gobject-introspection=$pkgver)
14 options=(!emptydirs)
15 source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
16 noextract=($_gemname-$pkgver.gem)
17 sha256sums=('8729681d683388862580093316f71fa7036094facf01223b1285d33b3370b2de')
19 package() {
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"