1 # Maintainer: Michael Duell <mail@akurei.me> PGP-Key: 6EE23EBE
2 pkgname=gajim-plugin-otr-hg
5 pkgdesc="OTR plugin for gajim-hg."
7 url="http://trac-plugins.gajim.org/wiki/OffTheRecordPlugin"
9 depends=('gajim-hg' 'python-potr-git')
10 makedepends=('mercurial')
11 provides=(gajim-plugin-otr)
13 _hgroot=http://hg.gajim.org/
18 msg "Connecting to Mercurial server...."
20 if [[ -d "$_hgrepo" ]]; then
23 msg "The local files are updated."
25 hg clone "$_hgroot""$_hgrepo"
28 msg "Mercurial checkout done or server timeout"
29 msg "Starting build..."
31 rm -rf "$srcdir/$_hgrepo-build"
32 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
33 cd "$srcdir/$_hgrepo-build"
37 cd "$srcdir/$_hgrepo-build"
38 sed -i "s#/usr/bin/env python#/usr/bin/env/python2#g" gotr/*
39 install -d ${pkgdir}/usr/share/gajim/plugins/gotr
40 install -Dm 644 gotr/* ${pkgdir}/usr/share/gajim/plugins/gotr/
43 # vim:set ts=2 sw=2 et: