summaryrefslogtreecommitdiffstats
path: root/gajim-hg/PKGBUILD
blob: 71a8de63a9408ec05b0ad60859504bf7cf2abc02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Benjamin Richter <br@waldteufel-online.net>
# Contributor: Changaco <changaco@changaco.net>
# Contributor: Artyom Smirnov <smirnoffjr@gmail.com>

pkgname=gajim-hg
pkgver=11794
pkgrel=1
pkgdesc="Jabber/XMMP instant messenger client written in PyGTK"
arch=('i686' 'x86_64')
url="http://gajim.org"
license=('GPL')
depends=('python>=2.5' 'pygtk>=2.16' 'xdg-utils')
makedepends=('mercurial' 'intltool>=0.40.1')
optdepends=(
    'libxss: idle'
    'pyopenssl: secure SSL/TLS'
    'pycrypto: End to end encryption'
    'dbus-glib: link-local messaging (install avahi!)'
    'avahi: link-local messaging (install dbus-glib!)'
    'dnsutils: SRV support'
    'gtkspell: Spell checking (install aspell-LANG!)'
    'gnome-python-desktop: Keyring support'
    'python-notify: Notification popups'
    'dbus-python'
    'farsight2: for Jingle support')
provides=('gajim')
conflicts=('gajim' 'gajim-svn')
replaces=('gajim-svn')
options=(!libtool)
install=gajim.install
source=()
md5sums=()

_hgroot=http://hg.gajim.org
_hgrepo=gajim

build() {
    rm -rf "{$srcdir}/build"
    
    cd "${srcdir}/${_hgrepo}"
    [[ $(hg branch) == default ]] || hg update default
    hg archive "${srcdir}/build"

    cd "${srcdir}/build"
    ./autogen.sh --prefix=/usr || return 1
    make || return 1
    make DESTDIR="${pkgdir}" install || return 1
}