# Maintainer: Benjamin Richter
# Contributor: Changaco
# Contributor: Artyom Smirnov
pkgname=gajim-hg
pkgver=11794
pkgrel=1
pkgdesc="Jabber/XMMP instant messenger client written in PyGTK"
arch=('i686' 'x86_64')
url="http://gajim.org"
license=('GPL')
depends=('python>=2.5' 'pygtk>=2.16' 'xdg-utils')
makedepends=('mercurial' 'intltool>=0.40.1')
optdepends=(
'libxss: idle'
'pyopenssl: secure SSL/TLS'
'pycrypto: End to end encryption'
'dbus-glib: link-local messaging (install avahi!)'
'avahi: link-local messaging (install dbus-glib!)'
'dnsutils: SRV support'
'gtkspell: Spell checking (install aspell-LANG!)'
'gnome-python-desktop: Keyring support'
'python-notify: Notification popups'
'dbus-python'
'farsight2: for Jingle support')
provides=('gajim')
conflicts=('gajim' 'gajim-svn')
replaces=('gajim-svn')
options=(!libtool)
install=gajim.install
source=()
md5sums=()
_hgroot=http://hg.gajim.org
_hgrepo=gajim
build() {
rm -rf "{$srcdir}/build"
cd "${srcdir}/${_hgrepo}"
[[ $(hg branch) == default ]] || hg update default
hg archive "${srcdir}/build"
cd "${srcdir}/build"
./autogen.sh --prefix=/usr || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
}