# $Id$
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: lucke <lucke at o2 dot pl>

pkgname=weechat
pkgver=0.3.0
pkgrel=2
pkgdesc="Fast, light and extensible IRC client (curses UI)"
arch=('i686' 'x86_64')
url="http://www.weechat.org/"
license=('GPL')
depends=('gnutls>=2.6.4' 'aspell' 'tcl')
makedepends=('pkgconfig' 'perl>=5.10' 'python>=2.6' 'lua')
optdepends=('perl>=5.10' 'python>=2.6' 'lua' 'ruby')
source=(http://www.weechat.org/files/src/$pkgname-$pkgver.tar.bz2)
options=(!libtool)
md5sums=('c31cfc229e964ff9257cc9c7f9e6c9bc')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr \
              --enable-ruby \
              --with-debug=0 LDFLAGS="-lm -ldl"
  make || return 1
  make DESTDIR="${pkgdir}/" install
}