summaryrefslogtreecommitdiff
path: root/community/emesene
diff options
context:
space:
mode:
Diffstat (limited to 'community/emesene')
-rwxr-xr-xcommunity/emesene/PKGBUILD55
-rw-r--r--community/emesene/emesene.install12
-rw-r--r--community/emesene/emesene.run2
-rw-r--r--community/emesene/setup.patch20
4 files changed, 89 insertions, 0 deletions
diff --git a/community/emesene/PKGBUILD b/community/emesene/PKGBUILD
new file mode 100755
index 000000000..f86109ac9
--- /dev/null
+++ b/community/emesene/PKGBUILD
@@ -0,0 +1,55 @@
+# $Id: PKGBUILD 60201 2011-12-07 14:41:34Z arodseth $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Claudio Riva <firetux83@gmail.com>
+
+pkgname=emesene
+pkgver=2.11.11
+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=("${pkgname}-${pkgver}.tar.gz::https://github.com/emesene/emesene/tarball/v2.11.11"
+ 'emesene.run')
+install=emesene.install
+options=('!libtool')
+sha1sums=('bf1c63d47617b746640950bd6aedf0fbe86e8743'
+ '2bd13ada86aa0af6307a41047f0d7caf2995660d')
+build() {
+ cd ${srcdir}/${pkgname}-${pkgname}-c1bfdeb
+
+ # 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-${pkgver}-py2.7.egg/share \
+ ${pkgdir}/usr
+ mv -f ${pkgdir}/usr/lib/python2.7/site-packages/emesene-${pkgver}-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
+}
diff --git a/community/emesene/emesene.install b/community/emesene/emesene.install
new file mode 100644
index 000000000..9ff2df7f8
--- /dev/null
+++ b/community/emesene/emesene.install
@@ -0,0 +1,12 @@
+post_install() {
+ update-desktop-database -q
+ 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..8fb6efc62
--- /dev/null
+++ b/community/emesene/emesene.run
@@ -0,0 +1,2 @@
+#!/bin/bash
+python2 /usr/share/emesene/emesene "$@"
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 = []