You are not logged in.

#1 2009-12-20 21:02:22

descendent87
Member
Registered: 2009-07-23
Posts: 105

[SOLVED] Telepathy protocols (git versions)

A lot of work is going on with empathy and telepathy lately, I'm already running the git version of empathy but would like the git versions of telepathy-butterfly (MSN), telepathy-gabble (XMPP/Jabber) and telepathy-idle (IRC).
I have no idea how to build from source let alone write PKGBUILDS for git versions of these so if someone would be willing to give it a shot it would be great
http://telepathy.freedesktop.org/wiki/Components

http://git.collabora.co.uk/?p=telepathy … ;a=summary
http://git.collabora.co.uk/?p=telepathy … ;a=summary
http://git.collabora.co.uk/?p=telepathy-idle.git

Last edited by descendent87 (2009-12-30 00:09:22)

Offline

#2 2009-12-21 06:57:42

extofme
Member
From: here + now
Registered: 2009-10-10
Posts: 174
Website

Re: [SOLVED] Telepathy protocols (git versions)

these builds complete, but i didnt actually run/use the library because i dont use empathy (kde will do it eventually right?).

PKGBUILDs are as-is, not in AUR.  they are also using an experimental git routine from here:

http://bbs.archlinux.org/viewtopic.php?id=86366

please let me know if you have any issues when rebuilding each day/whatever (mainly, is the repo updating correctly, or is it redownloading everything each time makepkg is ran?).  all i did was take the PKGBUILDs from ABS, and add the git specific bits (pkgver, _gitroot, _gitname, provides=(), conflicts=(), source=()) along with a handful of tweaks.  you can make your own for the other telepathy-* packages pretty easily by following these examples; usually only minor changes are necessary to make it work (telepathy-gabble needed another makedepend, and both telepathy-gabble and telepathy-idle needed ./configure changed to ./autogen.sh ... that was it)

TELEPATHY-BUTTERFLY-GIT

pkgname=telepathy-butterfly-git
pkgver=20091221
pkgrel=1
pkgdesc="A MSN connection manager for Telepathy"
arch=('i686' 'x86_64')
url="http://telepathy.freedesktop.org"
groups=('telepathy')
license=('GPL')
depends=('papyon>=0.4.2' 'python-telepathy>=0.15.11')
conflicts=('telepathy-butterfly')
provides=('telepathy-butterfly')
source=()

_gitroot=git://git.collabora.co.uk/git/telepathy-butterfly.git
_gitname=master

build() {

  msg2 "Syncing with ${_gitroot}..."
    g=${startdir}/${pkgname}.git; w=${srcdir}/${pkgname}
    [ -n "${_gitname#HEAD}" ] || \
      _gitname=$(git ls-remote $_gitroot | awk '$2~/HEAD/ {S=$1}; $1==S && $2!~/HEAD/ {sub("[a-z]+/[a-z]+/","",$2); print $2; exit}')
    [ -d "${g}" ] || git --git-dir=${g} --work-tree=${w} init
    mkdir -p ${w} && { [ -d "${w}/.git" ] || ln -s ${g} ${w}/.git; } && cd ${w}
    git show-ref -q $_gitname || d="--depth=1"
    git fetch -f -u -n $d ${_gitroot} +${_gitname}:${_gitname} || return 1
    git reset --hard ${_gitrefspec:=$_gitname} || return 1
  msg2 "Fetched remote ${_gitname}"

  ./configure --prefix=/usr --libexecdir=/usr/lib/telepathy
  make || return 1
  make DESTDIR=$pkgdir install || return 1

}

TELEPATHY-GABBLE-GIT

pkgname=telepathy-gabble-git
pkgver=20091221
pkgrel=1
pkgdesc="A Jabber/XMPP connection manager for Telepathy"
arch=('i686' 'x86_64')
url="http://telepathy.freedesktop.org"
groups=('telepathy')
license=('LGPL')
options=('!libtool')
depends=('loudmouth' 'telepathy-glib>=0.7.37' 'libsoup')
makedepends=('libxslt' 'gtk-doc')
conflicts=('telepathy-gabble')
provides=('telepathy-gabble')
source=()

_gitroot=git://git.collabora.co.uk/git/telepathy-gabble.git
_gitname=master

build() {

  msg2 "Syncing with ${_gitroot}..."
    g=${startdir}/${pkgname}.git; w=${srcdir}/${pkgname}
    [ -n "${_gitname#HEAD}" ] || \
      _gitname=$(git ls-remote $_gitroot | awk '$2~/HEAD/ {S=$1}; $1==S && $2!~/HEAD/ {sub("[a-z]+/[a-z]+/","",$2); print $2; exit}')
    [ -d "${g}" ] || git --git-dir=${g} --work-tree=${w} init
    mkdir -p ${w} && { [ -d "${w}/.git" ] || ln -s ${g} ${w}/.git; } && cd ${w}
    git show-ref -q $_gitname || d="--depth=1"
    git fetch -f -u -n $d ${_gitroot} +${_gitname}:${_gitname} || return 1
    git reset --hard ${_gitrefspec:=$_gitname} || return 1
  msg2 "Fetched remote ${_gitname}"

  ./autogen.sh --prefix=/usr --libexecdir=/usr/lib/telepathy --enable-shave
  make || return 1
  make DESTDIR=$pkgdir install

}

TELEPATHY-IDLE-GIT

pkgname=telepathy-idle-git
pkgver=20091221
pkgrel=1
pkgdesc="An IRC connection manager for Telepathy"
arch=('i686' 'x86_64')
url="http://telepathy.freedesktop.org"
groups=('telepathy')
license=('LGPL')
depends=('telepathy-glib' 'openssl')
makedepends=('libxslt')
conflicts=('telepathy-idle')
provides=('telepathy-idle')
source=()

_gitroot=git://git.collabora.co.uk/git/telepathy-idle.git
_gitname=master

build() {

  msg2 "Syncing with ${_gitroot}..."
    g=${startdir}/${pkgname}.git; w=${srcdir}/${pkgname}
    [ -n "${_gitname#HEAD}" ] || \
      _gitname=$(git ls-remote $_gitroot | awk '$2~/HEAD/ {S=$1}; $1==S && $2!~/HEAD/ {sub("[a-z]+/[a-z]+/","",$2); print $2; exit}')
    [ -d "${g}" ] || git --git-dir=${g} --work-tree=${w} init
    mkdir -p ${w} && { [ -d "${w}/.git" ] || ln -s ${g} ${w}/.git; } && cd ${w}
    git show-ref -q $_gitname || d="--depth=1"
    git fetch -f -u -n $d ${_gitroot} +${_gitname}:${_gitname} || return 1
    git reset --hard ${_gitrefspec:=$_gitname} || return 1
  msg2 "Fetched remote ${_gitname}"

  ./autogen.sh --prefix=/usr --libexecdir=/usr/lib/telepathy
  make || return 1
  make DESTDIR=$pkgdir install

}

what am i but an extension of you?

Offline

#3 2009-12-21 12:32:22

descendent87
Member
Registered: 2009-07-23
Posts: 105

Re: [SOLVED] Telepathy protocols (git versions)

thanks they all build fine and are working fine, will try updating them later and let you know if it works.
As for kde/telepathy I think kopete is supposed to be (maybe it already has?) switching to telepathy backend

Offline

#4 2009-12-21 18:48:48

extofme
Member
From: here + now
Registered: 2009-10-10
Posts: 174
Website

Re: [SOLVED] Telepathy protocols (git versions)

after some more testing im pretty sure those git routines are not working right. they should fix themselves however, or you can remove the line containing --depth=1


what am i but an extension of you?

Offline

Board footer

Powered by FluxBB