updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / pidgin-disco / PKGBUILD
blob7c2e73009d9f6917bcaa3df82e8517bc1ae60436
1 # Contributor: Gary Mann <garymann1001 gmail com>
2 # Maintainer: Gary Mann <garymann1001 gmail com
4 pkgname=pidgin-disco
5 pkgver=2.5.6
6 pkgrel=1
7 pkgdesc="Multi-protocol instant messaging client, Pidgin with XMPP service discovery"
8 arch=('i686' 'x86_64')
9 url="http://pidgin.im/"
10 license=('GPL')
11 depends=('startup-notification' 'gtkspell' 'libxss' 'gstreamer0.10'
12          'nss' 'libsasl' 'python' 'hicolor-icon-theme')
13 makedepends=('avahi' 'tk' 'ca-certificates' 'intltool')
14 optdepends=('avahi: Bonjour protocol support'
15             'tk: Tcl/Tk scripting support'
16             'ca-certificates: SSL CA certificates')
17 replaces=('gaim')
18 options=('!libtool')
19 install=pidgin.install
20 source=(http://downloads.sourceforge.net/pidgin/pidgin-$pkgver.tar.bz2 \
21         "disco-2.patch"
23 md5sums=('75bf724a61047eaaecad869ab452e475'
24          '5f7876a69b7cb9b6850ee64735197d77')
27 trap cleanup 1 2 3 6
29 cleanup()
31   echo -e "\nCaught a Signal ... cleaning up."
32     rm -Rf $srcdir
33   echo "Done cleanup ... quitting."
34 exit 1
37          
38 mkdir -p pkg
39 cp disco-2.patch pkg/   
40 build() {
41   cd "$srcdir/pidgin-$pkgver/"
42   patch -Np0 < ../../pkg/disco-2.patch
43   rm ../../pkg/disco-2.patch
44   aclocal --verbose
45   automake --verbose
46   ./configure --prefix=/usr --sysconfdir=/etc --disable-schemas-install --disable-meanwhile \
47     --disable-nm --disable-perl --disable-gnutls --enable-cyrus-sasl --disable-doxygen \
48     --with-system-ssl-certs=/etc/ssl/certs || return 1
49   make LIBTOOL=/usr/bin/libtool || return 1
50   make DESTDIR="$pkgdir" LIBTOOL=/usr/bin/libtool install || return 1
52   # Remove GConf schema file
53   rm -rf "$pkgdir/etc" || return 1