archrelease: copy trunk to extra-x86_64
[arch-packages.git] / pidgin / repos / extra-x86_64 / PKGBUILD
blob30e5143b384542a9541d50ab9f7973e8b701ccaf
1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Alexander Fehr <pizzapunk gmail com>
5 # Contributor: Lucien Immink <l.immink@student.fnt.hvu.nl>
7 pkgname=('pidgin' 'libpurple' 'finch')
8 pkgver=2.14.12
9 pkgrel=1
10 arch=('x86_64')
11 url="https://pidgin.im/"
12 license=('GPL')
13 makedepends=('startup-notification' 'gtkspell' 'libxss' 'nss' 'libsasl' 'libsm'
14              'libidn' 'libgadu' 'python' 'hicolor-icon-theme' 'farstream' 'tk'
15              'libnsl' 'avahi' 'ca-certificates' 'intltool' 'libnm' 'dbus-glib'
16              'libgnt' 'libxcrypt')
17 options=('!emptydirs')
18 source=(https://downloads.sourceforge.net/project/pidgin/Pidgin/$pkgver/$pkgname-$pkgver.tar.bz2{,.asc})
19 sha256sums=('2b05246be208605edbb93ae9edc079583d449e2a9710db6d348d17f59020a4b7'
20             'SKIP')
21 validpgpkeys=('40DE1DC7288FE3F50AB938C548F66AFFD9BDB729') # Gary Kramlich <grim@reaperworld.com>
23 build() {
24   cd $pkgbase-$pkgver
26   ./configure \
27     --prefix=/usr \
28     --sysconfdir=/etc \
29     --disable-schemas-install \
30     --disable-gevolution \
31     --disable-meanwhile \
32     --disable-gnutls \
33     --enable-cyrus-sasl \
34     --disable-doxygen \
35     --enable-nm \
36     --with-system-ssl-certs=/etc/ssl/certs
37     make
40 package_pidgin(){
41   pkgdesc="Multi-protocol instant messaging client"
42   depends=('libpurple' 'startup-notification' 'gtkspell' 'libxss' 'libsm'
43            'gst-plugins-base' 'gst-plugins-good' 'hicolor-icon-theme')
44   optdepends=('aspell: for spelling correction')
46   cd $pkgbase-$pkgver
48   # For linking
49   make -C libpurple DESTDIR="$pkgdir" install-libLTLIBRARIES
51   make -C pidgin DESTDIR="$pkgdir" install
52   make -C doc DESTDIR="$pkgdir" install
54   # Remove files that are packaged in libpurle
55   make -C libpurple DESTDIR="$pkgdir" uninstall-libLTLIBRARIES
57   rm "$pkgdir/usr/share/man/man1/finch.1"
59   # https://bugs.archlinux.org/task/53770
60   # https://bugs.archlinux.org/task/69026
61   find "$pkgdir/usr/lib/perl5" -name perllocal.pod -delete
64 package_libpurple(){
65   pkgdesc="IM library extracted from Pidgin"
66   depends=('farstream' 'libsasl' 'libidn' 'libnsl' 'libgadu' 'dbus-glib' 'nss'
67            'libnm' 'libxcrypt')
68   optdepends=('avahi: Bonjour protocol support'
69               'ca-certificates: SSL CA certificates'
70               'python-dbus: for purple-remote and purple-url-handler'
71               'tk: Tcl/Tk scripting support')
73   cd $pkgbase-$pkgver
75   for _dir in libpurple share/sounds share/ca-certs m4macros po; do
76     make -C "$_dir" DESTDIR="$pkgdir" install
77   done
79   # https://bugs.archlinux.org/task/53770
80   # https://bugs.archlinux.org/task/69026
81   find "$pkgdir/usr/lib/perl5" -name perllocal.pod -delete
84 package_finch(){
85   pkgdesc="A ncurses-based messaging client"
86   depends=('libpurple' 'libgnt' 'libx11')
88   cd $pkgbase-$pkgver
90   # For linking
91   make -C libpurple DESTDIR="$pkgdir" install-libLTLIBRARIES
93   make -C finch DESTDIR="$pkgdir" install
94   make -C doc DESTDIR="$pkgdir" install
96   # Remove files that are packaged in libpurle
97   make -C libpurple DESTDIR="$pkgdir" uninstall-libLTLIBRARIES
99   rm "$pkgdir"/usr/share/man/man1/pidgin.1
102 # vim:set ts=2 sw=2 et: