Date: Saturday, October 1, 2016 @ 18:44:07 Author: heftig Revision: 277520
0.18.3+5+gfe084b7-1 Modified: telepathy-gabble/trunk/PKGBUILD ----------+ PKGBUILD | 50 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 15 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-10-01 18:29:06 UTC (rev 277519) +++ PKGBUILD 2016-10-01 18:44:07 UTC (rev 277520) @@ -1,31 +1,51 @@ # $Id$ -# Maintainer : Ionut Biru <[email protected]> +# Contributor: Ionut Biru <[email protected]> # Contributor: Daniel Balieiro <[email protected]> # Contributor: Rodrigo L. M. Flores <[email protected]> + pkgname=telepathy-gabble -pkgver=0.18.3 -pkgrel=3 +pkgver=0.18.3+5+gfe084b7 +pkgrel=1 pkgdesc="A Jabber/XMPP connection manager for Telepathy" -arch=('i686' 'x86_64') +arch=(i686 x86_64) url="http://telepathy.freedesktop.org" -groups=('telepathy') -license=('LGPL2.1') -depends=('telepathy-glib' 'libsoup' 'libnice' 'sqlite') -makedepends=('libxslt' 'python2') -options=('!emptydirs') -source=(http://telepathy.freedesktop.org/releases/$pkgname/$pkgname-$pkgver.tar.gz) +groups=(telepathy) +license=(LGPL2.1) +depends=(telepathy-glib libsoup libnice sqlite) +makedepends=(libxslt python2 gnome-common git) +_commit=fe084b7ef77184927e7740583a395eb5106f0151 # telepathy-gabble-0.18 +source=("git://anongit.freedesktop.org/telepathy/telepathy-gabble#commit=$_commit" + "git://anongit.freedesktop.org/wocky") install=telepathy-gabble.install -md5sums=('40f2fbabc4e6e147258c83ed697f2fcf') +sha256sums=('SKIP' + 'SKIP') +pkgver() { + cd $pkgname + git describe --tags | sed 's/^telepathy-gabble-//;s/-/+/g' +} + +prepare() { + cd $pkgname + + git submodule init + git config --local submodule.lib/ext/wocky.url "$srcdir/wocky" + git submodule update + + sed -i '1s/python$/&2/' plugins/telepathy-gabble-xmpp-console + NOCONFIGURE=1 ./autogen.sh +} + build() { - cd $pkgname-$pkgver + cd $pkgname PYTHON=/usr/bin/python2 ./configure --prefix=/usr \ - --libexecdir=/usr/lib/telepathy + --libexecdir=/usr/lib/telepathy \ + --disable-Werror --enable-gtk-doc + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } package() { - cd $pkgname-$pkgver + cd $pkgname make DESTDIR="$pkgdir" install - sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|" "$pkgdir/usr/bin/telepathy-gabble-xmpp-console" }
