#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=gajim
pkgver=0.12.5
pkgrel=3gv
arch=i486
source=("http://www.gajim.org/downloads/gajim-$pkgver.tar.bz2" "metacontacts-0.12.5.patch")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://www.gajim.org

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"gajim (a GTK2+ Jabber/XMPP client)"
"The goal of Gajim is to provide a full featured and easy to use"
"Jabber client. Gajim works nicely with GNOME, but does not require it"
"to run. It is released under the GNU General Public License."
)


build() {
	cd $startdir/src/$pkgname-$pkgver

	patch -p3 < $startdir/src/metacontacts-0.12.5.patch || exit 1

	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --docdir=/usr/doc/$pkgname-$pkgver
	make || return 1
	make install DESTDIR=$startdir/pkg
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/64x64/apps
	( cd $startdir/pkg/usr/share/icons/hicolor/64x64/apps; ln -sf /usr/share/pixmaps/gajim.png gajim.png )

}