upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / ruby-gobject-introspection / trunk / PKGBUILD
blob93c913d5ad3cfff5207b7ee96254114a91f3d414
1 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
3 _gemname=gobject-introspection
4 pkgname=ruby-$_gemname
5 pkgver=4.1.2
6 pkgrel=1
7 pkgdesc='Ruby/GObjectIntrospection is a Ruby binding of GObjectIntrospection.'
8 arch=(x86_64)
9 url='http://ruby-gnome2.sourceforge.jp/'
10 license=(LGPL2.1)
11 depends=(ruby gobject-introspection-runtime ruby-glib2=$pkgver)
12 makedepends=(gobject-introspection ruby-native-package-installer)
13 options=(!emptydirs)
14 source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
15 noextract=($_gemname-$pkgver.gem)
16 sha256sums=('cee2401c83f1f0409e6d25fac7ebbf667d653609246d8d00e79a93143a285509')
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 --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"