blob: 5fab60f2ad8f059f0361752099da46a618e62985 (
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
|
# $Id: PKGBUILD 55723 2011-09-18 07:15:35Z rvanharen $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Claudio Riva <firetux83@gmail.com>
pkgname=emesene
pkgver=2.11.7
pkgrel=2
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=('ba18b6a40003c1e0407dc1395a237db84ce4efa1'
'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
}
|