sbcl rebuild
[arch-packages.git] / pidgin / repos / extra-x86_64 / PKGBUILD
blob546dbf41e66bfcb4f43da616d89674e1c5fdb758
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.10
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=('454b1b928bc6bcbb183353af30fbfde5595f2245a3423a1a46e6c97a2df22810'
20             'SKIP')
21 validpgpkeys=('40DE1DC7288FE3F50AB938C548F66AFFD9BDB729') # Gary Kramlich <grim@reaperworld.com>
23 prepare() {
24   cd $pkgbase-$pkgver
27 build() {
28   cd $pkgbase-$pkgver
30   ./configure \
31     --prefix=/usr \
32     --sysconfdir=/etc \
33     --disable-schemas-install \
34     --disable-gevolution \
35     --disable-meanwhile \
36     --disable-gnutls \
37     --enable-cyrus-sasl \
38     --disable-doxygen \
39     --enable-nm \
40     --with-system-ssl-certs=/etc/ssl/certs
41     make
44 package_pidgin(){
45   pkgdesc="Multi-protocol instant messaging client"
46   depends=('libpurple' 'startup-notification' 'gtkspell' 'libxss' 'libsm'
47            'gst-plugins-base' 'gst-plugins-good' 'hicolor-icon-theme')
48   optdepends=('aspell: for spelling correction')
50   cd $pkgbase-$pkgver
52   # For linking
53   make -C libpurple DESTDIR="$pkgdir" install-libLTLIBRARIES
55   make -C pidgin DESTDIR="$pkgdir" install
56   make -C doc DESTDIR="$pkgdir" install
58   # Remove files that are packaged in libpurle
59   make -C libpurple DESTDIR="$pkgdir" uninstall-libLTLIBRARIES
61   rm "$pkgdir/usr/share/man/man1/finch.1"
63   # https://bugs.archlinux.org/task/53770
64   # https://bugs.archlinux.org/task/69026
65   find "$pkgdir/usr/lib/perl5" -name perllocal.pod -delete
68 package_libpurple(){
69   pkgdesc="IM library extracted from Pidgin"
70   depends=('farstream' 'libsasl' 'libidn' 'libnsl' 'libgadu' 'dbus-glib' 'nss'
71            'libnm' 'libxcrypt')
72   optdepends=('avahi: Bonjour protocol support'
73               'ca-certificates: SSL CA certificates'
74               'python-dbus: for purple-remote and purple-url-handler'
75               'tk: Tcl/Tk scripting support')
77   cd $pkgbase-$pkgver
79   for _dir in libpurple share/sounds share/ca-certs m4macros po; do
80     make -C "$_dir" DESTDIR="$pkgdir" install
81   done
83   # https://bugs.archlinux.org/task/53770
84   # https://bugs.archlinux.org/task/69026
85   find "$pkgdir/usr/lib/perl5" -name perllocal.pod -delete
88 package_finch(){
89   pkgdesc="A ncurses-based messaging client"
90   depends=('libpurple' 'libgnt' 'libx11')
92   cd $pkgbase-$pkgver
94   # For linking
95   make -C libpurple DESTDIR="$pkgdir" install-libLTLIBRARIES
97   make -C finch DESTDIR="$pkgdir" install
98   make -C doc DESTDIR="$pkgdir" install
100   # Remove files that are packaged in libpurle
101   make -C libpurple DESTDIR="$pkgdir" uninstall-libLTLIBRARIES
103   rm "$pkgdir"/usr/share/man/man1/pidgin.1
106 # vim:set ts=2 sw=2 et: