summaryrefslogtreecommitdiff
path: root/extra/telepathy-butterfly/PKGBUILD
blob: 4285483d06ea57c0c2da5f2cfa5e8be15c866d8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $Id: PKGBUILD 150850 2012-02-23 12:45:25Z ibiru $
# Maintainer:  Ionut Biru <ibiru@archlinux.org>
# Contributor: Daniel Balieiro <daniel@balieiro.com>
pkgname=telepathy-butterfly
pkgver=0.5.15
pkgrel=2
pkgdesc="A MSN connection manager for Telepathy"
arch=('i686' 'x86_64' 'mips64el')
url="http://telepathy.freedesktop.org"
groups=('telepathy')
license=('GPL')
depends=('papyon>=0.5.4' 'python-telepathy>=0.15.19')
source=(http://telepathy.freedesktop.org/releases/telepathy-butterfly/telepathy-butterfly-${pkgver}.tar.gz
        0001-bugfix-remove-bad-import-from-im-module.patch)
install=telepathy-butterfly.install
md5sums=('4baa6337822f01d817c4b9d8fd406e82'
         '08417a06a0e4a1875f1baf4b910cdcf4')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np1 -i "${srcdir}/0001-bugfix-remove-bad-import-from-im-module.patch"
  ./configure --prefix=/usr --libexecdir=/usr/lib/telepathy
  make
  make DESTDIR="${pkgdir}" install

  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
      "${pkgdir}/usr/lib/telepathy/telepathy-butterfly"
}