[arch-commits] Commit in pidgin/trunk (PKGBUILD)
Ionut Biru
ibiru at archlinux.org
Tue Nov 3 14:21:30 UTC 2009
Date: Tuesday, November 3, 2009 @ 09:21:29
Author: ibiru
Revision: 58020
upgpkg: pidgin 2.6.3-2
split pidgin in libpurple, pidgin and finch and enable support for networkmanager
Modified:
pidgin/trunk/PKGBUILD
----------+
PKGBUILD | 106 +++++++++++++++++++++++++++++++++++++++++++------------------
1 file changed, 76 insertions(+), 30 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-11-03 13:57:54 UTC (rev 58019)
+++ PKGBUILD 2009-11-03 14:21:29 UTC (rev 58020)
@@ -1,45 +1,91 @@
# $Id$
-# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Maintainer : Biru Ionut <ionut at archlinux.ro>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
# Contributor: Alexander Fehr <pizzapunk gmail com>
# Contributor: Lucien Immink <l.immink at student.fnt.hvu.nl>
-pkgname=pidgin
+pkgbase=('pidgin')
+pkgname=('libpurple' 'pidgin' 'finch')
pkgver=2.6.3
-pkgrel=1
-pkgdesc="Multi-protocol instant messaging client"
+pkgrel=2
arch=('i686' 'x86_64')
url="http://pidgin.im/"
license=('GPL')
-depends=('startup-notification' 'gtkspell' 'libxss' 'nss' 'libsasl' 'python'
- 'hicolor-icon-theme' 'silc-toolkit' 'gstreamer0.10-base' 'farsight2')
-makedepends=('avahi' 'tk' 'ca-certificates' 'intltool')
-optdepends=('gstreamer0.10-good: to play sounds'
- 'avahi: Bonjour protocol support'
- 'tk: Tcl/Tk scripting support'
- 'ca-certificates: SSL CA certificates'
- 'aspell: for spelling correction')
-replaces=('gaim')
+makedepends=('startup-notification' 'gtkspell' 'libxss' 'nss' 'libsasl' 'python'
+ 'hicolor-icon-theme' 'silc-toolkit' 'gstreamer0.10-base' 'farsight2' 'avahi'
+ 'tk' 'ca-certificates' 'intltool' 'networkmanager')
options=('!libtool')
-install=pidgin.install
-source=(http://downloads.sourceforge.net/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2)
+source=(http://downloads.sourceforge.net/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.bz2)
md5sums=('8d0ff6215b2d023eaa8efef59097ef83')
build() {
- cd ${srcdir}/${pkgname}-$pkgver
+ cd "$srcdir/$pkgbase-$pkgver"
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --disable-schemas-install \
- --disable-meanwhile \
- --disable-nm \
- --disable-perl \
- --enable-gnutls=no \
- --enable-cyrus-sasl \
- --disable-doxygen \
- --with-system-ssl-certs=/etc/ssl/certs || return 1
- make || return 1
- make DESTDIR="$pkgdir" install || return 1
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-schemas-install \
+ --disable-meanwhile \
+ --disable-nm \
+ --disable-perl \
+ --disable-gnutls \
+ --enable-cyrus-sasl \
+ --disable-doxygen \
+ --enable-nm \
+ --with-system-ssl-certs=/etc/ssl/certs || return 1
+ make || return 1
+}
+package_libpurple(){
+ pkgdesc="IM library extracted from Pidgin"
+ depends=('farsight2' 'libsasl' 'dbus-glib' 'silc-toolkit' 'nss')
+ cd "$srcdir/$pkgbase-$pkgver"
- # Remove GConf schema file
- rm -rf "$pkgdir/etc" || return 1
+ for dir in libpurple share/sounds share/ca-certs m4macros po
+ do
+ make -C "$dir" DESTDIR="$pkgdir" install || return 1
+ done
+# rm -rf "$pkgdir/etc" || return 1
}
+
+package_pidgin(){
+ pkgdesc="Multi-protocol instant messaging client"
+ depends=("libpurple=$pkgver" 'startup-notification' 'gtkspell' 'libxss' 'python'
+ 'hicolor-icon-theme' 'gstreamer0.10-base')
+ optdepends=('gstreamer0.10-good: to play sounds'
+ 'avahi: Bonjour protocol support'
+ 'tk: Tcl/Tk scripting support'
+ 'ca-certificates: SSL CA certificates'
+ 'aspell: for spelling correction')
+
+ install=pidgin.install
+ cd "$srcdir/$pkgbase-$pkgver"
+ #for linking
+ make -C libpurple DESTDIR="$pkgdir" install-libLTLIBRARIES || return 1
+
+ make -C pidgin DESTDIR="$pkgdir" install || return 1
+ make -C doc DESTDIR="$pkgdir" install || return 1
+
+ #clean up libpurple
+ make -C libpurple DESTDIR="$pkgdir" uninstall-libLTLIBRARIES || return 1
+
+ install -D -m 0644 pidgin.desktop "$pkgdir"/usr/share/applications/pidgin.desktop || return 1
+
+ rm -f "$pkgdir"/usr/share/man/man1/finch.1 || return 1
+}
+package_finch(){
+ pkgdesc="A ncurses-based messaging client"
+ depends=("libpurple=$pkgver" 'libidn')
+ optdepends=('avahi: Bonjour protocol support'
+ 'tk: Tcl/Tk scripting support'
+ 'ca-certificates: SSL CA certificates')
+
+ cd "$srcdir/$pkgbase-$pkgver"
+ #for linking
+ make -C libpurple DESTDIR="$pkgdir" install-libLTLIBRARIES || return 1
+
+ make -C finch DESTDIR="$pkgdir" install || return 1
+ make -C doc DESTDIR="$pkgdir" install || return 1
+
+ #clean up libpurple
+ make -C libpurple DESTDIR="$pkgdir" uninstall-libLTLIBRARIES || return 1
+ rm -f "$pkgdir"/usr/share/man/man1/pidgin.1 || return 1
+}
More information about the arch-commits
mailing list