blob: 2e9b856fa2d722494d4a8eba34c26c4ac186ddd8 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $Id: PKGBUILD 57431 2011-10-27 18:18:52Z rvanharen $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Claudio Riva <firetux83@gmail.com>
pkgname=emesene
pkgver=2.11.9
pkgrel=1
pkgdesc="A pygtk MSN Messenger client"
url="http://www.emesene.org/"
license=('custom:PSF' 'GPL' 'LGPL2.1')
arch=('i686' 'x86_64' 'mips64el') # libmimic is hardcoded, so no 'any' package
depends=('python2' 'pygtk' 'python-dnspython' 'pylint' 'python-notify' 'openssl' \
'papyon' 'python-imaging' 'dbus-python' 'xdg-utils' 'hicolor-icon-theme' \
'gstreamer0.10-python' 'gstreamer0.10-good')
makedepends=('python2-distribute')
optdepends=('gnome-python-extras: spell-check plugin'
'gtkspell: spell-check plugin'
'farsight2: webcam support'
'pywebkitgtk: for alternative conversation window'
'xmpppy: for gtalk and facebook chat support'
'pyqt: alternative qt4 interface (emesene -e main:qt4_main')
source=("ftp://ftp.archlinux.org/other/community/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
'emesene.run')
install=emesene.install
options=('!libtool')
sha1sums=('b79ee47962db7927f2fcfdcb5fb5b042bced4b94'
'2bd13ada86aa0af6307a41047f0d7caf2995660d')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# do not import dummy session
# sed -i -e "/import dummy/d" emesene/emesene.py
# install files
export PYTHONPATH="${pkgdir}/usr/lib/python2.7/site-packages/"
install -d ${pkgdir}/usr/lib/python2.7/site-packages/
python2 setup.py install --prefix=${pkgdir}/usr
}
package() {
cd ${pkgdir}
# use /usr/share/emesene instead of /usr/lib/python2.5/site-packages
mv -f ${pkgdir}/usr/lib/python2.7/site-packages/emesene-2.0-py2.7.egg/share \
${pkgdir}/usr
mv -f ${pkgdir}/usr/lib/python2.7/site-packages/emesene-2.0-py2.7.egg/emesene \
${pkgdir}/usr/share
rm -rf ${pkgdir}/usr/lib
# python -> python2
find -name *.py -exec sed -i "s|/usr/bin/env python|/usr/bin/env python2|" {} \;
# create executable
install -Dm755 ${srcdir}/emesene.run ${pkgdir}/usr/bin/emesene
}
|