gtk/pidgin/PKGBUILD

53 lines
1.4 KiB
Bash
Raw Normal View History

2013-04-29 06:59:19 +08:00
pkgname=('pidgin')
2014-02-07 04:59:20 +08:00
pkgver=2.10.9
2013-04-29 06:59:19 +08:00
pkgrel=1
arch=('x86_64')
pkgdesc="Multi-protocol instant messaging client"
url="http://pidgin.im/"
license=('GPL')
depends=('libpurple' 'startup-notification' 'gtkspell' 'libxss' 'libsm'
2014-01-31 21:18:19 +08:00
'hicolor-icon-theme')
2013-04-29 06:59:19 +08:00
makedepends=('nss' 'libsasl' 'libidn' 'python2' 'farstream' 'avahi'
'tk' 'ca-certificates' 'intltool' 'networkmanager')
optdepends=('aspell: for spelling correction')
options=('!libtool')
install=pidgin.install
2014-01-31 21:18:19 +08:00
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
2014-02-07 04:59:20 +08:00
md5sums=('10a4a69d077893f6dd3438cd8af94e81')
2013-04-29 06:59:19 +08:00
build() {
cd "$srcdir/$pkgname-$pkgver"
# Use Python 2
sed -i 's/env python$/&2/' */plugins/*.py \
libpurple/purple-{remote,notifications-example,url-handler}
./configure \
2014-01-31 21:18:19 +08:00
--prefix=/usr \
--sysconfdir=/etc \
2013-04-29 06:59:19 +08:00
--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(){
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
2014-01-31 21:18:19 +08:00
install -Dm644 pidgin.desktop "$pkgdir"/usr/share/applications/pidgin.desktop
2013-04-29 06:59:19 +08:00
}