diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/ruby-gtk3/PKGBUILD | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/ruby-gtk3/PKGBUILD')
-rw-r--r-- | community/ruby-gtk3/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/community/ruby-gtk3/PKGBUILD b/community/ruby-gtk3/PKGBUILD new file mode 100644 index 000000000..ff3aff3a7 --- /dev/null +++ b/community/ruby-gtk3/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 92836 2013-06-16 15:30:03Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: Eric Bélanger +# Contributor: Brad Fanella <bradfanella@archlinux.us> +# Contributor: Bjorn Lindeijer <bjorn@lindeijer.nl> +# Contributor: kritoke <kritoke@nospam.gmail.com> + +pkgbase=ruby-gtk3 +pkgver=2.0.2 +pkgrel=1 +pkgname=('ruby-gtk3' 'ruby-gdk3') +depends=("ruby-atk=$pkgver" "ruby-gdkpixbuf2=$pkgver" "ruby-glib2=$pkgver" "ruby-pango=$pkgver") +arch=('x86_64' 'i686') +url='http://ruby-gnome2.sourceforge.jp/' +license=('LGPL') +makedepends=('ruby-pkgconfig' 'ruby-cairo' 'gtk3') +source=("http://downloads.sourceforge.net/ruby-gnome2/ruby-gtk3-$pkgver.tar.gz") +sha256sums=('cc55542b207899af2bc0489c004c394b2332656cbf25ef3ff0daceff39535047') + +prepare() { + cd "$srcdir/ruby-gtk3-$pkgver" + + LANG="en_US.UTF-8" ruby extconf.rb gtk3 gdk3 --vendor +} + +build() { + cd "$srcdir/ruby-gtk3-$pkgver" + make +} + +package_ruby-gtk3() { + pkgdesc='Ruby bindings for gtk3' + depends=('gtk3' "ruby-glib2=$pkgver" "ruby-pango=$pkgver" "ruby-atk=$pkgver" + "ruby-gdkpixbuf2=$pkgver" "ruby-gdk3=$pkgver") + + cd "$srcdir/ruby-gtk3-$pkgver/gtk3" + mkdir -p "$pkgdir/usr/lib/ruby/vendor_ruby/2.0.0/$CARCH-linux" + make DESTDIR="$pkgdir/" install -j1 +} + +package_ruby-gdk3() { + pkgdesc='Ruby bindings for gdk3' + depends=('ruby' 'gtk3') + + cd "$srcdir/ruby-gtk3-$pkgver/gdk3" + mkdir -p "$pkgdir/usr/lib/ruby/vendor_ruby/2.0.0/$CARCH-linux" + make DESTDIR="$pkgdir/" install -j1 +} + +# vim:set ts=2 sw=2 et: |