# Maintainer: Natanael Copa pkgname=pidgin pkgver=2.10.11 pkgrel=1 pkgdesc="graphical multi-protocol instant messaging client for X" url="http://pidgin.im/" arch="all" license="GPL" depends= makedepends="gtk+-dev intltool libsm-dev startup-notification-dev gtkspell-dev libxml2-dev libidn-dev gnutls-dev avahi-dev cyrus-sasl-dev ncurses-dev nss-dev autoconf automake libtool" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang libpurple-bonjour:_bonjour libpurple-ymsg:_ymsg libpurple-oscar:_oscar libpurple-xmpp:_xmpp finch libpurple " source="http://downloads.sourceforge.net/pidgin/pidgin-$pkgver.tar.bz2 http://downloads.sourceforge.net/project/pidgin/Pidgin/$pkgver/pidgin-$pkgver.tar.bz2 pidgin-underlinking.patch " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case "$i" in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done libtoolize || return 1 aclocal -I m4macros && autoconf && automake --add-missing || return 1 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --enable-avahi \ --disable-dbus \ --disable-doxygen \ --disable-gnutls \ --disable-meanwhile \ --disable-nm \ --disable-perl \ --disable-schemas-install \ --disable-screensaver \ --disable-tcl \ --disable-vv \ --disable-gstreamer \ --disable-gstreamer-interfaces \ --disable-farstream \ --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/ } _mv_purple() { pkgdesc="$1" shift mkdir -p "$subpkgdir"/usr/lib/purple-2/ for i; do mv "$pkgdir"/usr/lib/purple-2/${i}.* \ "$subpkgdir"/usr/lib/purple-2/ || return 1 done } _bonjour() { _mv_purple "bonjour plugin for libpurple" libbonjour } _ymsg() { _mv_purple "yahoo plugins for libpurple" libymsg libyahoo libyahoojp } _oscar() { _mv_purple "AIM, ICQ plugins for libpurple" liboscar libaim libicq } _xmpp() { _mv_purple "Jabber/XMPP plugins for libpurple" libxmpp libjabber } md5sums="7c8bb6f997e05e7929104439872c2844 pidgin-2.10.11.tar.bz2 7c8bb6f997e05e7929104439872c2844 pidgin-2.10.11.tar.bz2 9e7f42f8bc4284009dff50e8128bf4f9 pidgin-underlinking.patch" sha256sums="f2ae211341fc77efb9945d40e9932aa535cdf3a6c8993fe7919fca8cc1c04007 pidgin-2.10.11.tar.bz2 f2ae211341fc77efb9945d40e9932aa535cdf3a6c8993fe7919fca8cc1c04007 pidgin-2.10.11.tar.bz2 3f086cb668806f3b69af4c7decd6618a16dbfdcd120df984713adafc5bc0aa09 pidgin-underlinking.patch" sha512sums="774710ab087cb56e349dc1d5e45dbfcbe06b9a8f792abe5d201b0860620d502009f31563cfe5316f4c815345427b6c273b8f9694deb600848957c825fd967029 pidgin-2.10.11.tar.bz2 774710ab087cb56e349dc1d5e45dbfcbe06b9a8f792abe5d201b0860620d502009f31563cfe5316f4c815345427b6c273b8f9694deb600848957c825fd967029 pidgin-2.10.11.tar.bz2 307f284a7d1ad5277b8d198d8ee56806f063a8b72356726f89f31fad67aad3e3cd43c597556e7dce1804d2e8d92b350a968fcc851a11d851f70c7a375ab29559 pidgin-underlinking.patch"