archrelease: copy trunk to community-any
[ArchLinux/community.git] / ruby-gdk4 / trunk / PKGBUILD
blob72b7b8c80ea04bcaf7f94fb8608988be5fb79778
1 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
3 _gemname=gdk4
4 pkgname=ruby-$_gemname
5 pkgver=4.1.2
6 pkgrel=1
7 pkgdesc='Ruby/GDK4 is a Ruby binding of GDK-4.x.'
8 arch=(x86_64)
9 url='http://ruby-gnome2.sourceforge.jp/'
10 license=(LGPL2.1)
11 depends=(ruby gtk4 ruby-cairo-gobject=$pkgver ruby-gdk_pixbuf2=$pkgver ruby-pango=$pkgver)
12 makedepends=(ruby-native-package-installer rake)
13 options=(!emptydirs)
14 source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
15 noextract=($_gemname-$pkgver.gem)
16 sha256sums=('3902c58c3c0291341cd042807da83339193cdef21a548af3255f91a0e5b458cd')
18 package() {
19   local _gemdir="$(ruby -e'puts Gem.default_dir')"
20   gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
21   rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"