updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / pidgin-zag / PKGBUILD
blobf08ef2792decb730f2d4e84e3f737aac351dac39
1 # Maintainer:  Eugen Zagorodniy <e dot zagorodniy at gmail dot com>
2 # Contributor: Evangelos Foutras <evangelos@foutrelis.com>
3 # Contributor: Ionut Biru <ibiru@archlinux.org>
4 # Contributor: Andrea Scarpino <andrea@archlinux.org>
5 # Contributor: Alexander Fehr <pizzapunk gmail com>
6 # Contributor: Lucien Immink <l.immink@student.fnt.hvu.nl>
8 pkgname='pidgin-zag'
9 pkgver=2.10.0
10 pkgrel=1
11 arch=('i686' 'x86_64')
12 url="http://pidgin.im/"
13 license=('GPL')
14 pkgdesc="Pidgin with patch for ticket 10593"
15 depends=('libpurple' 'startup-notification' 'gtkspell' 'libxss' 'libsm'
16          'gstreamer0.10' 'hicolor-icon-theme')
17 makedepends=('startup-notification' 'gtkspell' 'libxss' 'nss' 'libsasl' 'libsm'
18              'python2' 'hicolor-icon-theme' 'silc-toolkit' 'gstreamer0.10'
19              'farsight2' 'avahi' 'tk' 'ca-certificates' 'intltool'
20              'networkmanager')
21 optdepends=('aspell: for spelling correction'
22             'ca-certificates: SSL CA certificates'
23             'gstreamer0.10-good-plugins: video and voice support'
24             'tk: Tcl/Tk scripting support')
25 provides=('pidgin')
26 conflicts=('pidgin')
27 options=('!libtool')
28 install=pidgin.install
29 source=(http://downloads.sourceforge.net/pidgin/pidgin-$pkgver.tar.bz2
30         nm09-more.patch
31         http://developer.pidgin.im/raw-attachment/ticket/10593/pidgin-ticket-10593.patch)
32 md5sums=('e1453c9093c4f32beec19abd14069a3f'
33          'a673659d86c7a65aa710f7c8c7feda82'
34          '0ed981c84e06ac0a1dbc784f3701c2b2')
36 build() {
37   cd "$srcdir/pidgin-$pkgver"
39   # Further fixes for NetworkManager 0.9
40   # http://developer.pidgin.im/ticket/13859
41   patch -Np1 -i "$srcdir/nm09-more.patch"
43   # #10593: Tray notification for jabber groupchats
44   # http://developer.pidgin.im/ticket/10593
45   patch -Np1 -i "$srcdir/pidgin-ticket-10593.patch"
47   # Use Python 2
48   sed -i 's/env python$/\02/' */plugins/*.py \
49     libpurple/purple-{remote,notifications-example,url-handler}
51   ./configure \
52     --prefix=/usr \
53     --sysconfdir=/etc \
54     --disable-schemas-install \
55     --disable-meanwhile \
56     --disable-gnutls \
57     --enable-cyrus-sasl \
58     --disable-doxygen \
59     --enable-nm \
60     --with-python=/usr/bin/python2 \
61     --with-system-ssl-certs=/etc/ssl/certs
62     make
65 package(){
66   cd "$srcdir/pidgin-$pkgver"
68   # For linking
69   make -C libpurple DESTDIR="$pkgdir" install-libLTLIBRARIES
71   make -C pidgin DESTDIR="$pkgdir" install
72   make -C doc DESTDIR="$pkgdir" install
74   # Remove files that are packaged in libpurle
75   make -C libpurple DESTDIR="$pkgdir" uninstall-libLTLIBRARIES
77   install -Dm644 pidgin.desktop "$pkgdir"/usr/share/applications/pidgin.desktop
79   rm "$pkgdir/usr/share/man/man1/finch.1"