diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/ruby-gtk2/PKGBUILD | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/ruby-gtk2/PKGBUILD')
-rw-r--r-- | community/ruby-gtk2/PKGBUILD | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/community/ruby-gtk2/PKGBUILD b/community/ruby-gtk2/PKGBUILD new file mode 100644 index 000000000..259ba3cdd --- /dev/null +++ b/community/ruby-gtk2/PKGBUILD @@ -0,0 +1,89 @@ +# $Id: PKGBUILD 92390 2013-06-04 13:59:53Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: Eric Bélanger <eric@archlinux.org> +# Contributor: Brad Fanella <bradfanella@archlinux.us> +# Contributor: Bjorn Lindeijer <bjorn@lindeijer.nl> +# Contributor: kritoke <kritoke@nospam.gmail.com> + +pkgbase=ruby-gtk2 +pkgname=('ruby-atk' 'ruby-gdkpixbuf2' 'ruby-gio2' 'ruby-glib2' 'ruby-gtk2' + 'ruby-pango') +pkgver=2.0.2 +pkgrel=1 +arch=('x86_64' 'i686') +url='http://ruby-gnome2.sourceforge.jp/' +license=('LGPL') +makedepends=('ruby-pkgconfig' 'ruby-cairo' 'gtk2' 'glib2') +source=("http://downloads.sourceforge.net/ruby-gnome2/ruby-gtk2-$pkgver.tar.gz") +sha256sums=('3a009bde5f4c684214d7860cce5763db4d862cfdeafaa84578117dc723b7e1e5') + +prepare() { + cd "$srcdir/ruby-gtk2-$pkgver" + + LANG="en_US.UTF-8" \ + ruby extconf.rb atk gdk_pixbuf2 gio2 glib2 gtk2 pango --vendor + mkdir -p \ + "$pkgdir/ruby-glib2/usr/lib/ruby/vendor_ruby/2.0.0/i686-linux" \ + "$pkgdir/ruby-atk/usr/lib/ruby/vendor_ruby/2.0.0/i686-linux" \ + "$pkgdir/ruby-gio2/usr/lib/ruby/vendor_ruby/2.0.0/i686-linux" \ + "$pkgdir/ruby-atk/usr/lib/ruby/vendor_ruby/2.0.0/i686-linux" \ + "$pkgdir/ruby-pango/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-linux" \ + "$pkgdir/ruby-glib2/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-linux" \ + "$pkgdir/ruby-gio2/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-linux" +} + +build() { + cd "$srcdir/ruby-gtk2-$pkgver" + make +} + +package_ruby-atk() { + pkgdesc='Ruby bindings for atk' + depends=("ruby-glib2=$pkgver" 'atk') + + cd "$srcdir/ruby-gtk2-$pkgver/atk" + make includedir="/usr/include" 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 includedir="/usr/include" DESTDIR="$pkgdir" install +} + +package_ruby-gio2() { + pkgdesc='Ruby bindings for gio2' + depends=("ruby-glib2=$pkgver") + + cd "$srcdir/ruby-gtk2-$pkgver/gio2" + make includedir="/usr/include" DESTDIR="$pkgdir/" install +} + +package_ruby-glib2() { + pkgdesc='Ruby bindings for glib2' + depends=('glib2' 'ruby') + + cd "$srcdir/ruby-gtk2-$pkgver/glib2" + make includedir="/usr/include" 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 includedir="/usr/include" 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 includedir="/usr/include" DESTDIR="$pkgdir/" install +} + +# vim:set ts=2 sw=2 et: |