From 9187f1bcf40e64e39451b73c6caf93432069256f Mon Sep 17 00:00:00 2001 From: tengel Date: Wed, 20 Mar 2024 08:41:22 -0500 Subject: [PATCH] rewrite build, update to 2.10.10-1 --- libpurple-meanwhile/PKGBUILD | 79 +++++++++++++++++++++++------------- 1 file changed, 50 insertions(+), 29 deletions(-) diff --git a/libpurple-meanwhile/PKGBUILD b/libpurple-meanwhile/PKGBUILD index ef827e1..450f431 100644 --- a/libpurple-meanwhile/PKGBUILD +++ b/libpurple-meanwhile/PKGBUILD @@ -1,50 +1,71 @@ +# Maintainer: Troy Engel +# Contributor: William Overstreet # Contributor: Vinicius de Avila Jorge -# Maintainer: William Overstreet pkgname=libpurple-meanwhile -pkgver=2.10.9 -pkgrel=1.1 +pkgver=2.10.10 +pkgrel=1 arch=('i686' 'x86_64') url="http://pidgin.im/" license=('GPL') -pkgdesc="Plugin for Sametime Protocol. No longer replacing pidgin package." -makedepends=('startup-notification' 'libxss' 'nss' 'libsasl' 'libsm' - 'libidn' 'python2' 'hicolor-icon-theme' 'ca-certificates' - 'intltool' 'networkmanager') -depends=('dbus-glib' 'nss' 'meanwhile' 'pidgin') -optdepends=('avahi: Bonjour protocol support' - 'dbus-python: for purple-remote and purple-url-handler' - 'telepathy-haze: Empathy support' - 'telepathy-salut: Empathy support') +pkgdesc="Pidgin Instant Messenger plugin for Sametime support" +makedepends=('make' 'libtool' 'pkg-config' 'glib2' 'libxml2' + 'meanwhile' 'libpurple') +depends=('glib2' 'meanwhile' 'libpurple') provides=('libpurple-meanwhile') options=('!libtool') source=(http://downloads.sourceforge.net/pidgin/pidgin-$pkgver.tar.bz2) -sha256sums=('dc362ed8577f623eea4554a79e917073aa726825074fea402f2e515f0f51f319') +sha256sums=('dc6b95512eaec75aef170aabce471491fc70584932599dfead20f1f1c45c822d') build() { cd "$srcdir/pidgin-$pkgver" - # The farstream patch changes configure.ac - autoreconf -vi - - # Use Python 2 - sed -i 's/env python$/&2/' */plugins/*.py \ - libpurple/purple-{remote,notifications-example,url-handler} - + # Override all the defaults, the plugin only needs the basics - this + # prevents all sorts of extra libraries being linked to the finished + # libsametime.so that a user may have installed, as well as avoiding + # auto-detection of TCL/TK and so forth. + PKG_CONFIG="" \ + GLIB_CFLAGS="$(pkg-config --cflags 'glib-2.0 >= 2.16.0 gobject-2.0 gmodule-2.0 gthread-2.0')" \ + GLIB_LIBS="$(pkg-config --libs 'glib-2.0 >= 2.16.0 gobject-2.0 gmodule-2.0 gthread-2.0')" \ + LIBXML_CFLAGS="$(pkg-config --cflags 'libxml-2.0 >= 2.6.0')" \ + LIBXML_LIBS="$(pkg-config --libs 'libxml-2.0 >= 2.6.0')" \ + MEANWHILE_CFLAGS="$(pkg-config --cflags 'meanwhile >= 1.0.0 meanwhile < 2.0.0')" \ + MEANWHILE_LIBS="$(pkg-config --libs 'meanwhile >= 1.0.0 meanwhile < 2.0.0')" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ - --with-dynamic-prpls=sametime \ - --disable-schemas-install \ - --disable-gnutls \ - --enable-cyrus-sasl \ - --disable-doxygen \ - --enable-nm \ --with-python=/usr/bin/python2 \ - --with-system-ssl-certs=/etc/ssl/certs \ + --with-dynamic-prpls=sametime \ --enable-silent-rules \ - --enable-shared + --enable-shared \ + --disable-gtkui \ + --disable-consoleui \ + --disable-screensaver \ + --disable-sm \ + --disable-startup-notification \ + --disable-gtkspell \ + --disable-gestures \ + --disable-schemas-install \ + --disable-gstreamer \ + --disable-gstreamer-interfaces \ + --disable-farstream \ + --disable-vv \ + --disable-idn \ + --disable-avahi \ + --disable-fortify \ + --disable-dbus \ + --disable-nls \ + --disable-nm \ + --disable-nss \ + --disable-perl \ + --disable-gnutls \ + --disable-tcl \ + --disable-tk \ + --disable-pixmaps-install \ + --disable-doxygen \ + --disable-dot \ + --disable-devhelp cd "$srcdir/pidgin-$pkgver/libpurple/protocols/sametime" make @@ -52,6 +73,6 @@ build() { package(){ cd "$srcdir/pidgin-$pkgver" - make -C "libpurple/protocols" DESTDIR="$pkgdir" install + make -C "libpurple/protocols/sametime" DESTDIR="$pkgdir" install }