[arch-commits] Commit in pidgin/repos (extra-x86_64 extra-x86_64/PKGBUILD)

Ionut Biru ibiru at archlinux.org
Tue Nov 3 09:24:41 EST 2009


    Date: Tuesday, November 3, 2009 @ 09:24:41
  Author: ibiru
Revision: 58022

Merged revisions 56766,58020 via svnmerge from 
svn+ssh://gerolde.archlinux.org/srv/svn-packages/pidgin/trunk

........
  r56766 | andrea | 2009-10-27 13:25:43 +0200 (Tue, 27 Oct 2009) | 1 line
  
  fix configure option
........
  r58020 | ibiru | 2009-11-03 16:21:29 +0200 (Tue, 03 Nov 2009) | 2 lines
  
  upgpkg: pidgin 2.6.3-2
      split pidgin in libpurple, pidgin and finch and enable support for networkmanager
........

Modified:
  pidgin/repos/extra-x86_64/	(properties)
  pidgin/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |  106 +++++++++++++++++++++++++++++++++++++++++++------------------
 1 file changed, 76 insertions(+), 30 deletions(-)


Property changes on: pidgin/repos/extra-x86_64
___________________________________________________________________
Modified: svnmerge-integrated
   - /pidgin/trunk:1-55942
   + /pidgin/trunk:1-58021

Modified: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2009-11-03 14:22:29 UTC (rev 58021)
+++ extra-x86_64/PKGBUILD	2009-11-03 14:24:41 UTC (rev 58022)
@@ -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 \
-              --disable-gnutls \
-              --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