summaryrefslogtreecommitdiff
path: root/community/ruby-gtk2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ruby-gtk2/PKGBUILD')
-rw-r--r--community/ruby-gtk2/PKGBUILD65
1 files changed, 53 insertions, 12 deletions
diff --git a/community/ruby-gtk2/PKGBUILD b/community/ruby-gtk2/PKGBUILD
index cf6a05af1..0935a6037 100644
--- a/community/ruby-gtk2/PKGBUILD
+++ b/community/ruby-gtk2/PKGBUILD
@@ -1,28 +1,69 @@
-# $Id: PKGBUILD 53871 2011-08-09 01:21:52Z bfanella $
+# $Id: PKGBUILD 57406 2011-10-27 00:37:47Z ebelanger $
# Maintainer: Brad Fanella <bradfanella@archlinux.us>
# Contributor: Bjorn Lindeijer <bjorn@lindeijer.nl>
# Contributor: kritoke <kritoke@nospam.gmail.com>
-pkgname=ruby-gtk2
-pkgver=1.0.0
+pkgbase=ruby-gtk2
+pkgname=('ruby-atk' 'ruby-gdkpixbuf2' 'ruby-gio2' 'ruby-glib2' 'ruby-gtk2' 'ruby-pango')
+pkgver=1.0.3
pkgrel=1
-pkgdesc="Ruby bindings for gtk2."
arch=('i686' 'x86_64')
url="http://ruby-gnome2.sourceforge.jp"
license=('LGPL')
-depends=('ruby-glib2' 'ruby-pango' 'ruby-atk' 'ruby-gdkpixbuf2')
-makedepends=('ruby-pkgconfig' 'ruby-cairo')
+makedepends=('ruby-pkgconfig' 'ruby-cairo' 'gtk2')
source=(http://downloads.sourceforge.net/ruby-gnome2/ruby-gtk2-$pkgver.tar.gz)
-md5sums=('e9711eb5bd88debda90a920deb96d7d0')
+md5sums=('fa1de7fc920de46fb8d8b9f67732c7a3')
build() {
cd "$srcdir/ruby-gtk2-$pkgver"
-
- export LANG="en_US.UTF-8"
- ruby extconf.rb gtk2 --topdir=$pkgdir
+ ruby extconf.rb atk gdk_pixbuf2 gio2 glib2 gtk2 pango --topdir=$pkgdir
make
}
-package() {
- cd "$srcdir/ruby-gtk2-$pkgver"
+
+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
}