1 # Contributor: Claudio Riva <firetux83@gmail.com>
2 # Contributor: helios91
4 # http://svn.sourceforge.net/viewcvs.cgi/emesene/trunk/
10 pkgdesc="An OS independent MSN Messenger client writed in python and GTK"
11 url="http://www.emesene.org/"
12 arch=('i686' 'x86_64')
13 license=('PSF' 'GPL' 'LGPL2')
14 makedepends=('subversion')
15 depends=('python2' 'pygtk')
16 optdepends=('gnome-python-extras: for spell-check plugin' \
17 'gtkspell: for spell-check plugin' \
18 'cabextract: for Wink preview plugin' \
19 'gnash-common: for Wink preview plugin' \
20 'gstreamer0.10-python: for webcam support')
23 source=('emesene.run' 'setup.patch')
24 md5sums=('6c9460b8f0add1316ae14c16e5e81dd8'
25 '8d532a00e4e39532896d9d28869a2469')
28 _svntrunk="https://emesene.svn.sourceforge.net/svnroot/emesene/trunk/emesene"
33 msg "Getting sources..."
34 svn co $_svntrunk $_svnmod -r $pkgver
38 sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' Controller.py
40 # enable installing in setup.py
41 patch -Np0 -i ${srcdir}/setup.patch
43 python2 setup.py install --prefix=${pkgdir}/usr
45 #Support for webcam (libmimic)
46 #python2 setup.py build_ext -i
49 mkdir -p $startdir/pkg/usr/{bin,share/${_realname}}
50 cp -r * $startdir/pkg/usr/share/${_realname}
51 rm -rf $startdir/pkg/usr/share/${_realname}/{docs,COPYING,emesene,emesene.bat,PSF,LGPL,GPL,libmimic}
53 #Fix that enable about window to show license
54 ln -s /usr/share/licenses/${_realname}/COPYING $pkgdir/usr/share/emesene/
56 # install startup file
57 install -Dm755 $startdir/src/emesene.run $startdir/pkg/usr/bin/${_realname}
60 install -Dm644 misc/${_realname}.png $startdir/pkg/usr/share/pixmaps/${_realname}.png
62 # install desktop file
63 install -Dm644 misc/${_realname}.desktop $startdir/pkg/usr/share/applications/${_realname}.desktop
66 rm -rf `find $startdir/pkg/ -type d -name .svn`