summaryrefslogtreecommitdiff
path: root/community/ruby-gtk2/PKGBUILD
blob: c46eff5b55a29627e07292e3107b7cb0cf1f3b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
}