3 # Contributor: Adrian C. <anrxc sysphere.org>
9 pkgdesc="Jabber instant messenger with OTR encryption support"
10 arch=("i686" "x86_64")
11 url="http://www.gajim.org/"
13 depends=("python2" "pygtk" "python-pysqlite" "python-otr")
14 makedepends=("mercurial" "gettext" "intltool" "perlxml" "dbus")
15 optdepends=("gnupg: chat encryption using GnuPG"
16 "pycrypto: end-to-end encryption support"
17 "python2-pyopenssl: SSL/TLS verification of server certificates"
18 "dbus-python: notification support with notification-daemon"
19 "libxss: automatic status support"
20 "gtkspell: spell checker support"
21 "avahi: local clients autodetection"
22 "dnsutils: SRV records support")
24 conflicts=("gajim" "gajim-svn" "gajim-hg" "gajim-otr-bzr")
27 _root="http://hg.gajim.org"
35 # Source code checkout
36 if [ -d "${_repo}-${_branch}" ]; then
37 cd "${_repo}-${_branch}"
38 make clean || echo "No rule is not fatal. Continuing."
39 make distclean || echo "No rule is not fatal. Continuing."
40 hg pull -b "${_branch}"
41 msg "The local repository was updated."
43 hg clone -b "${_branch}" "${_root}/${_repo}" "${_repo}-${_branch}"
44 msg "The remote repository was cloned."
45 cd "${_repo}-${_branch}"
48 # Python v2 compatibility
49 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/env python2_' "${srcdir}/${_repo}-${_branch}/src/ipython_view.py"
50 sed -i 's_^#!.*/usr/bin/env.*python$_#!/usr/bin/env python2_' "${srcdir}/${_repo}-${_branch}/src/otr_windows.py"
53 PYTHON=/usr/bin/python2 ./autogen.sh --prefix=/usr --enable-site-packages
55 make DESTDIR="${pkgdir}" install
57 # Object files cleanup
58 find "${pkgdir}/usr/lib/python2.7/site-packages/gajim/" -name "*.pyo" | xargs rm -f