# $Id: PKGBUILD 63819 2012-02-05 18:41:40Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Eric Bélanger # Contributor: Brad Fanella # Contributor: Bjorn Lindeijer # Contributor: kritoke pkgbase=ruby-gtk2 pkgname=('ruby-atk' 'ruby-gdkpixbuf2' 'ruby-gio2' 'ruby-glib2' 'ruby-gtk2' 'ruby-pango') pkgver=1.1.2 pkgrel=1 arch=('x86_64' 'i686' 'mips64el') url="http://ruby-gnome2.sourceforge.jp/" license=('LGPL') makedepends=('ruby-pkgconfig' 'ruby-cairo' 'gtk2') source=("http://downloads.sourceforge.net/ruby-gnome2/ruby-gtk2-$pkgver.tar.gz") sha256sums=('a16da4335c3e65ccab22e38caa55843fe2df18d55987c7be3f9dfc70866e2aaf') build() { cd "$srcdir/ruby-gtk2-$pkgver" LANG="en_US.UTF-8" ruby extconf.rb atk gdk_pixbuf2 gio2 glib2 gtk2 pango --topdir="$pkgdir" make } package_ruby-atk() { pkgdesc="Ruby bindings for atk" depends=("ruby-glib2=$pkgver" 'atk') cd "$srcdir/ruby-gtk2-$pkgver/atk" make DESTDIR="$pkgdir" install } package_ruby-gdkpixbuf2() { pkgdesc="Ruby bindings for gdkpixbuf2" depends=("ruby-glib2=$pkgver" 'gdk-pixbuf2') cd "$srcdir/ruby-gtk2-$pkgver/gdk_pixbuf2" make DESTDIR="$pkgdir" install } package_ruby-gio2() { pkgdesc="Ruby bindings for gio2" depends=("ruby-glib2=$pkgver") cd "$srcdir/ruby-gtk2-$pkgver/gio2" make DESTDIR="$pkgdir" install } package_ruby-glib2() { pkgdesc="Ruby bindings for glib2" depends=('glib2' 'ruby') cd "$srcdir/ruby-gtk2-$pkgver/glib2" make DESTDIR="$pkgdir" install } package_ruby-gtk2() { pkgdesc="Ruby bindings for gtk2" depends=('gtk2' "ruby-glib2=$pkgver" "ruby-pango=$pkgver" "ruby-atk=$pkgver" "ruby-gdkpixbuf2=$pkgver") cd "$srcdir/ruby-gtk2-$pkgver/gtk2" make DESTDIR="$pkgdir" install } package_ruby-pango() { pkgdesc="Ruby bindings for pango" depends=("ruby-glib2=$pkgver" 'ruby-cairo' 'pango') cd "$srcdir/ruby-gtk2-$pkgver/pango" make DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 et: