Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: telepathy-gabble 0.18.4-4: build with python v3
Browse files Browse the repository at this point in the history
git-svn-id: file:///srv/repos/svn-packages/svn@388402 eb2447ed-0c53-47e4-bac8-5bc4a241df78
  • Loading branch information
andyrtr authored and svntogit committed Jun 7, 2020
1 parent 5c020a9 commit edcf78c
Show file tree
Hide file tree
Showing 2 changed files with 425 additions and 6 deletions.
15 changes: 9 additions & 6 deletions trunk/PKGBUILD
Expand Up @@ -5,28 +5,31 @@

pkgname=telepathy-gabble
pkgver=0.18.4
pkgrel=3
pkgrel=4
pkgdesc="A Jabber/XMPP connection manager for Telepathy"
arch=(x86_64)
url="https://telepathy.freedesktop.org"
groups=(telepathy)
license=(LGPL2.1)
depends=(telepathy-glib libsoup libnice)
makedepends=(libxslt python2 gnome-common)
source=(https://telepathy.freedesktop.org/releases/telepathy-gabble/telepathy-gabble-$pkgver.tar.gz{,.asc})
makedepends=(libxslt python gnome-common)
source=(https://telepathy.freedesktop.org/releases/telepathy-gabble/telepathy-gabble-$pkgver.tar.gz{,.asc}
telepathy-gabble-0.18.4-python3.patch)
install=telepathy-gabble.install
sha256sums=('115c91572c72d4a40f0b25b606167b4f2f09441dc7bf1036ccbb1450f1a4969c'
'SKIP')
'SKIP'
'2873cdb3b65deab1418acd25fc5ec4bf120f52dcceda129ae7ac315026ea2749')
validpgpkeys=(38FDAD7D73CE1AE7A16200291F3845DD1432A9FB) # Georgios Kiagiadakis <gkiagia@tolabaki.gr>

prepare() {
cd $pkgname-$pkgver
sed -e 's|/usr/bin/env python|/usr/bin/env python2|' -i plugins/telepathy-gabble-xmpp-console
# port to python3, patch taken from Fedora
patch -Np1 -i ../telepathy-gabble-0.18.4-python3.patch
}

build() {
cd $pkgname-$pkgver
PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
./configure --prefix=/usr \
--libexecdir=/usr/lib/telepathy \
--disable-Werror --enable-gtk-doc
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
Expand Down

0 comments on commit edcf78c

Please sign in to comment.