archrelease: copy trunk to community-any
[ArchLinux/community.git] / ruby-glib2 / repos / community-x86_64 / PKGBUILD
blob26c88bec347166c7cc738738302a1b2a983fbcd7
1 # Generated by gem2arch (https://github.com/anatol/gem2arch)
2 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
4 _gemname=glib2
5 pkgname=ruby-$_gemname
6 pkgver=4.1.2
7 pkgrel=1
8 pkgdesc='Ruby/GLib2 is a Ruby binding of GLib-2.x.'
9 arch=(x86_64)
10 url='http://ruby-gnome2.sourceforge.jp/'
11 license=(LGPL2.1)
12 depends=(ruby glib2 ruby-pkg-config ruby-native-package-installer)
13 options=(!emptydirs)
14 source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
15 noextract=($_gemname-$pkgver.gem)
16 sha256sums=('57ec9a8ed491913a90d3b8264b204aa1608986a0bac64f62ea8c93f51749f396')
18 package() {
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"