updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / emesene-svn / PKGBUILD
blobd6163dbcad4b57887caccfe75f50d5553ecb92bd
1 # Contributor: Claudio Riva <firetux83@gmail.com>
2 # Contributor: helios91
4 # http://svn.sourceforge.net/viewcvs.cgi/emesene/trunk/
6 pkgname=emesene-svn
7 _realname=emesene
8 pkgver=2467
9 pkgrel=1
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')
21 provides=('emesene')
22 conflicts=('emesene')
23 source=('emesene.run' 'setup.patch')
24 md5sums=('6c9460b8f0add1316ae14c16e5e81dd8'
25          '8d532a00e4e39532896d9d28869a2469')
27 _svnmod="emesene"
28 _svntrunk="https://emesene.svn.sourceforge.net/svnroot/emesene/trunk/emesene"
30 build() {
31   cd $startdir/src
33   msg "Getting sources..."
34   svn co $_svntrunk $_svnmod -r $pkgver
35   cd $_svnmod
36   
37   # python2 fix
38   sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' Controller.py
39   
40   # enable installing in setup.py
41   patch -Np0 -i ${srcdir}/setup.patch
42   
43   python2 setup.py install --prefix=${pkgdir}/usr
44   
45   #Support for webcam (libmimic)
46   #python2 setup.py build_ext -i
48   # Copying files
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}
52   
53   #Fix that enable about window to show license
54   ln -s /usr/share/licenses/${_realname}/COPYING $pkgdir/usr/share/emesene/
55   
56   # install startup file
57   install -Dm755 $startdir/src/emesene.run $startdir/pkg/usr/bin/${_realname}
58   
59   # install pixmap
60   install -Dm644 misc/${_realname}.png $startdir/pkg/usr/share/pixmaps/${_realname}.png
61   
62   # install desktop file
63   install -Dm644 misc/${_realname}.desktop $startdir/pkg/usr/share/applications/${_realname}.desktop
64   
65   # Removing .svn files
66   rm -rf `find $startdir/pkg/ -type d -name .svn`