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/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/ruby-gtk2/PKGBUILD b/community/ruby-gtk2/PKGBUILD
new file mode 100644
index 000000000..c46eff5b5
--- /dev/null
+++ b/community/ruby-gtk2/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 40204 2011-02-21 19:23:54Z bfanella $
+# Maintainer: Brad Fanella <bradfanella@archlinux.us>
+# Contributor: Bjorn Lindeijer <bjorn@lindeijer.nl>
+# Contributor: kritoke <kritoke@nospam.gmail.com>
+
+pkgname=ruby-gtk2
+pkgver=0.90.7
+pkgrel=2
+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')
+source=(http://downloads.sourceforge.net/ruby-gnome2/ruby-gtk2-$pkgver.tar.gz
+ 'mkmf-gnome2.patch')
+md5sums=('82ebea3ebb6fa51ffc5ec631b31d519a'
+ '93dac3212aa8fccfc83b2cd518750cf7')
+
+build() {
+ cd "$srcdir/ruby-gtk2-$pkgver"
+
+ # Apply ruby-cairo fixes
+ patch -Np1 -i ../mkmf-gnome2.patch glib2/lib/mkmf-gnome2.rb
+
+ ruby extconf.rb gtk2 --topdir=$pkgdir
+ make
+}
+package() {
+ cd "$srcdir/ruby-gtk2-$pkgver"
+ make DESTDIR="$pkgdir" install
+}