# $Id: PKGBUILD 154327 2012-03-26 11:27:11Z foutrelis $ # Maintainer: Evangelos Foutras # Contributor: Ionut Biru # Contributor: Andrea Scarpino # Contributor: Alexander Fehr # Contributor: Lucien Immink pkgname=('pidgin' 'libpurple' 'finch') pkgver=2.10.3 pkgrel=1 arch=('i686' 'x86_64' 'mips64el') url="http://pidgin.im/" license=('GPL') makedepends=('startup-notification' 'gtkspell' 'libxss' 'nss' 'libsasl' 'libsm' 'libidn' 'python2' 'hicolor-icon-theme' 'gstreamer0.10' 'farsight2' 'avahi' 'tk' 'ca-certificates' 'intltool' 'networkmanager') options=('!libtool') source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 port-to-farstream-v2.patch) sha256sums=('0f67d96231fea3945c2735e6a3b4bd92590ef489fa1511fa69aa6a543cb4168b' '03ba48e0da1331a976efc28a66810be4f51599a2b8065ac449965e0aefca4482') build() { cd "$srcdir/$pkgname-$pkgver" # Apply patch for farsight -> farstream transition # http://developer.pidgin.im/ticket/14936 #patch -Np1 -i "$srcdir/port-to-farstream-v2.patch" # The farstream patch changes configure.ac #autoreconf -vi # Use Python 2 sed -i 's/env python$/&2/' */plugins/*.py \ libpurple/purple-{remote,notifications-example,url-handler} ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --disable-schemas-install \ --disable-meanwhile \ --disable-gnutls \ --enable-cyrus-sasl \ --disable-doxygen \ --enable-nm \ --with-python=/usr/bin/python2 \ --with-system-ssl-certs=/etc/ssl/certs make } package_pidgin(){ pkgdesc="Multi-protocol instant messaging client" depends=('libpurple' 'startup-notification' 'gtkspell' 'libxss' 'libsm' 'gstreamer0.10' 'hicolor-icon-theme') optdepends=('aspell: for spelling correction' 'ca-certificates: SSL CA certificates' 'gstreamer0.10-good-plugins: video and voice support' 'tk: Tcl/Tk scripting support') install=pidgin.install cd "$srcdir/pidgin-$pkgver" # For linking make -C libpurple DESTDIR="$pkgdir" install-libLTLIBRARIES make -C pidgin DESTDIR="$pkgdir" install make -C doc DESTDIR="$pkgdir" install # Remove files that are packaged in libpurle make -C libpurple DESTDIR="$pkgdir" uninstall-libLTLIBRARIES install -Dm644 pidgin.desktop "$pkgdir"/usr/share/applications/pidgin.desktop rm "$pkgdir/usr/share/man/man1/finch.1" } package_libpurple(){ pkgdesc="IM library extracted from Pidgin" depends=('farsight2' 'libsasl' 'libidn' 'dbus-glib' 'nss') optdepends=('avahi: Bonjour protocol support' 'dbus-python: for purple-remote and purple-url-handler') cd "$srcdir/pidgin-$pkgver" for _dir in libpurple share/sounds share/ca-certs m4macros po; do make -C "$_dir" DESTDIR="$pkgdir" install done } package_finch(){ pkgdesc="A ncurses-based messaging client" depends=("libpurple=$pkgver-$pkgrel" 'python2' 'gstreamer0.10') optdepends=('avahi: Bonjour protocol support' 'ca-certificates: SSL CA certificates' 'tk: Tcl/Tk scripting support') cd "$srcdir/pidgin-$pkgver" # For linking make -C libpurple DESTDIR="$pkgdir" install-libLTLIBRARIES make -C finch DESTDIR="$pkgdir" install make -C doc DESTDIR="$pkgdir" install # Remove files that are packaged in libpurle make -C libpurple DESTDIR="$pkgdir" uninstall-libLTLIBRARIES rm "$pkgdir"/usr/share/man/man1/pidgin.1 } # vim:set ts=2 sw=2 et: