# Contributor: Luca Russo <vargolo@gmail.com>
# Contributor: Sigitas Mazaliauskas <sigisnn@gmail.com>
# Contributor: Andreas W. Hauser <andy-aur@splashground.de>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>

pkgname=ruby-libnotify
pkgver=0.8.0
pkgrel=1
pkgdesc="ruby bindings for libnotify, a library for desktop notifications"
arch=('i686' 'x86_64')
url="http://rubygems.org/downloads"
license=('LGPL')
depends=('ruby' 'libnotify' 'ruby-gtk2')
makedepends=('ruby-pkgconfig')
source=(http://rubygems.org/downloads/${pkgname}-${pkgver}.gem)
noextract=(${pkgname}-${pkgver}.gem)

build() {
  cd $srcdir
  local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"

  gem install --ignore-dependencies -i "$pkgdir$_gemdir" ${pkgname}-${pkgver}.gem
}