# Maintainer: Natanael Copa pkgname=pidgin pkgver=2.7.6 pkgrel=0 pkgdesc="graphical multi-protocol instant messaging client for X" url="http://pidgin.im/" license="GPL" depends= makedepends="gtk+-dev intltool libsm-dev startup-notification-dev gtkspell-dev libxml2-dev gstreamer-dev libidn-dev dbus-glib-dev gnutls-dev cyrus-sasl-dev ncurses-dev nss-dev" subpackages="$pkgname-dev $pkgname-doc finch libpurple" source="http://downloads.sourceforge.net/pidgin/pidgin-$pkgver.tar.bz2" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --disable-avahi \ --disable-doxygen \ --disable-gnutls \ --disable-meanwhile \ --disable-nm \ --disable-perl \ --disable-schemas-install \ --disable-screensaver \ --disable-tcl \ --disable-vv \ --enable-cyrus-sasl \ --enable-nss \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install } finch() { pkgdesc="text-based multi-protocol instant messaging client" mkdir -p "$subpkgdir"/usr/lib "$subpkgdir"/usr/bin mv "$pkgdir"/usr/lib/gnt "$pkgdir"/usr/lib/libgnt.so.* \ "$pkgdir"/usr/lib/finch \ "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/bin/finch "$subpkgdir"/usr/bin/ } libpurple() { pkgdesc="multi-protocol instant messaging library" mkdir -p "$subpkgdir"/usr/lib "$subpkgdir"/usr/share/sounds mv "$pkgdir"/usr/lib/*purple* "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/share/purple "$pkgdir"/usr/share/sounds \ "$subpkgdir"/usr/share/ } md5sums="ea85e10081eb84fdac3bc1aabff1dd60 pidgin-2.7.6.tar.bz2"