updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / poezio-hg / PKGBUILD
blob0131fb6cb4935857b740edfa1b753d889b495743
1 # Maintainer: mathieui <mathieui[at]mathieui.net>
2 # Contributor: mathieui <mathieui[at]mathieui.net>
4 pkgname=poezio-hg
5 pkgrel=2
6 pkgver=827
7 pkgdesc="A full-featured command-line irc-like (muc-centered) jabber client (hg)"
8 arch='any'
9 url="http://poezio.eu"
10 conflicts=('poezio')
11 provides=('poezio')
12 license=('zlib')
13 depends=('python' 'python-sleekxmpp-poezio')
14 makedepends=('mercurial' 'python-sleekxmpp-poezio')
15 optdepends=('python-dnspython-hg: SRV records support (also, gmail)')
17 _hgrepo="poezio"
18 _hgroot="http://hg.louiz.org/"
20 build() {
21   cd "${srcdir}"
22   msg "Connecting to Mercurial server...."
24   if [ -d $_hgrepo ] ; then
25     cd $_hgrepo
26     hg pull -u
27     msg "The local files are updated."
29   else
30     hg clone $_hgroot $_hgrepo
31   fi
33   msg "Mercurial checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf "$srcdir/$_hgrepo-build"
37   cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
38   cd "$srcdir/$_hgrepo-build"
41 package() {
42   cd "$srcdir/$_hgrepo-build"
43   make
44   make DESTDIR=$pkgdir prefix=/usr install