diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/telepathy-idle |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/telepathy-idle')
-rw-r--r-- | extra/telepathy-idle/PKGBUILD | 29 | ||||
-rw-r--r-- | extra/telepathy-idle/python27.patch | 21 | ||||
-rw-r--r-- | extra/telepathy-idle/telepathy-idle.install | 13 |
3 files changed, 63 insertions, 0 deletions
diff --git a/extra/telepathy-idle/PKGBUILD b/extra/telepathy-idle/PKGBUILD new file mode 100644 index 000000000..05fd9edd6 --- /dev/null +++ b/extra/telepathy-idle/PKGBUILD @@ -0,0 +1,29 @@ +# $Id: PKGBUILD 102391 2010-12-07 17:47:06Z ibiru $ +# Maintainer: Ionut Biru <ibiru@archlinux.org> +# Contributor: Bjorn Lindeijer <bjorn lindeijer nl> +# Contributor: Samuel Mendes <heka.lok@gmail.com> +pkgname=telepathy-idle +pkgver=0.1.7 +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>=0.12.5' 'openssl') +makedepends=('libxslt' 'python2') +install=telepathy-idle.install +source=(http://telepathy.freedesktop.org/releases/telepathy-idle/${pkgname}-${pkgver}.tar.gz + python27.patch) +md5sums=('5ee3aa5c6e1112922b11711e6a209331' + '03661efde8f768417e224720e1346d7b') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/python27.patch" + autoreconf -fi + ./configure --prefix=/usr \ + --libexecdir=/usr/lib/telepathy + make + make DESTDIR="${pkgdir}" install +} diff --git a/extra/telepathy-idle/python27.patch b/extra/telepathy-idle/python27.patch new file mode 100644 index 000000000..f8abffb57 --- /dev/null +++ b/extra/telepathy-idle/python27.patch @@ -0,0 +1,21 @@ +diff -Nur telepathy-idle-0.1.7.orig/configure.ac telepathy-idle-0.1.7/configure.ac +--- telepathy-idle-0.1.7.orig/configure.ac 2010-12-07 03:52:29.000000000 -0800 ++++ telepathy-idle-0.1.7/configure.ac 2010-12-07 09:41:21.179715253 -0800 +@@ -103,7 +103,7 @@ + AC_MSG_ERROR([xsltproc (from the libxslt source package) is required]) + fi + PYTHON= +-AC_CHECK_PROGS([PYTHON], [python2.3 python2.4 python2.5 python]) ++AC_CHECK_PROGS([PYTHON], [python2.3 python2.4 python2.5 python2.7 python]) + if test -z "$PYTHON"; then + AC_MSG_ERROR([Python is required to compile this package]) + fi +@@ -111,7 +111,7 @@ + + dnl check for a version of python that can run the twisted tests + AC_MSG_CHECKING([for Python with Twisted and IRC protocol support]) +-for TEST_PYTHON in python2.5 python2.6 python; do ++for TEST_PYTHON in python2.5 python2.6 python2.7 python; do + if $TEST_PYTHON -c "from sys import version_info; import dbus, dbus.mainloop.glib; raise SystemExit(version_info < (2, 5, 0, 'final', 0))" >/dev/null 2>&1; then + if $TEST_PYTHON -c "import twisted.words.protocols.irc, twisted.internet.reactor" >/dev/null 2>&1; then + AM_CONDITIONAL([WANT_TWISTED_TESTS], true) diff --git a/extra/telepathy-idle/telepathy-idle.install b/extra/telepathy-idle/telepathy-idle.install new file mode 100644 index 000000000..87d7838b8 --- /dev/null +++ b/extra/telepathy-idle/telepathy-idle.install @@ -0,0 +1,13 @@ +post_install() { + killall -HUP dbus-daemon 2>&1 +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} + +# vim:set ts=2 sw=2 et: |