diff options
Diffstat (limited to 'community/emesene')
-rwxr-xr-x | community/emesene/PKGBUILD | 48 | ||||
-rw-r--r-- | community/emesene/emesene.install | 11 | ||||
-rw-r--r-- | community/emesene/emesene.run | 3 | ||||
-rw-r--r-- | community/emesene/setup.patch | 20 |
4 files changed, 82 insertions, 0 deletions
diff --git a/community/emesene/PKGBUILD b/community/emesene/PKGBUILD new file mode 100755 index 000000000..38a900af3 --- /dev/null +++ b/community/emesene/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Ronald van Haren <ronald.archlinux.org> +# Contributor: Claudio Riva <firetux83@gmail.com> + +pkgname=emesene +pkgver=1.6.3 +pkgrel=4 +pkgdesc="A pygtk MSN Messenger client" +url="http://www.emesene.org/" +license=('custom:PSF' 'GPL' 'LGPL2.1') +arch=('i686' 'x86_64') # libmimic is hardcoded, so no 'any' package +depends=('python2' 'pygtk' 'hicolor-icon-theme' 'xdg-utils') +optdepends=('gnome-python-extras: spell-check plugin' + 'gtkspell: spell-check plugin' + 'aspell: spell-check plugin (also need aspell dictionary)' + 'gstreamer0.10-python: webcam support' + 'gstreamer0.10-good-plugins: webcam support') +source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-$pkgver.tar.gz \ + 'emesene.run' 'setup.patch') +install=emesene.install +options=('!libtool') +sha1sums=('c4759efe180c8e1589bd966c6b84106aa7cd356e' + '46dcc89d089c0356d121356aa2ffff45e4468138' + '0195898a6cb609f4ad736e0687bf76641f6db537') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + # python2 fix + sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' Controller.py + + # enable installing in setup.py + patch -Np0 -i ${srcdir}/setup.patch + + # install license files + install -Dm644 COPYING ${pkgdir}/usr/share/licenses/emesene/COPYING + install -Dm644 PSF ${pkgdir}/usr/share/licenses/emesene/PSF + + # install files + python2 setup.py install --prefix=${pkgdir}/usr + + # use /usr/share/emesene instead of /usr/lib/python2.5/site-packages + mv -f ${pkgdir}/usr/lib/python2.7/site-packages $pkgdir/usr/share/emesene + rm -rf ${pkgdir}/usr/lib + + # remove old executable and use our own because we use /usr/share/emesene + rm ${pkgdir}/usr/bin/emesene + install -Dm755 ${srcdir}/emesene.run ${pkgdir}/usr/bin/emesene +} diff --git a/community/emesene/emesene.install b/community/emesene/emesene.install new file mode 100644 index 000000000..309ea10a5 --- /dev/null +++ b/community/emesene/emesene.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/community/emesene/emesene.run b/community/emesene/emesene.run new file mode 100644 index 000000000..35d9dbfa3 --- /dev/null +++ b/community/emesene/emesene.run @@ -0,0 +1,3 @@ +#!/bin/bash +python2 /usr/share/emesene/Controller.py $@ + diff --git a/community/emesene/setup.patch b/community/emesene/setup.patch new file mode 100644 index 000000000..858b7f928 --- /dev/null +++ b/community/emesene/setup.patch @@ -0,0 +1,20 @@ +--- setup.py.orig 2010-05-03 11:02:53.551508139 +0200 ++++ setup.py 2010-05-03 11:03:09.681918067 +0200 +@@ -6,17 +6,6 @@ + import sys + + if os.name == 'posix': +- for arg in sys.argv: +- if arg == 'install': +- print 'Hello.\nYou are trying to do a system-wide install of emesene '\ +- 'using this script, which is a very bad thing to do.\n'\ +- 'Seriously, you do NOT want to do this, since it can break '\ +- 'other python apps, and emesene too!\n'\ +- 'Follow my advice: just run the \"emesene\" script that is '\ +- 'in this very same directory and you\'re done. emesene is running '\ +- 'and your system is safe. It\'s a win-win, don\'t you think?\n'\ +- 'Thanks for trying emesene.' +- quit() + + # From apport's setup.py + mo_files = [] |