1 # Maintainer: Calvin McAnarney <calvin@mcanarney.org>
2 pkgname=prosody-auth-dovecot-hg
5 pkgdesc="Dovecot authentication module for prosody"
7 url="http://code.google.com/p/prosody-modules"
10 makedepends=('mercurial')
12 _hgroot=https://prosody-modules.googlecode.com/hg
13 _hgrepo=prosody-modules
17 msg "Connecting to Mercurial server...."
19 if [[ -d "$_hgrepo" ]]; then
22 msg "The local files are updated."
24 hg clone "$_hgroot" "$_hgrepo"
27 msg "Mercurial checkout done or server timeout"
28 msg "Starting build..."
30 rm -rf "$srcdir/$_hgrepo-build"
31 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
32 cd "$srcdir/$_hgrepo-build"
36 cd "$srcdir/$_hgrepo-build"
37 install -D "mod_auth_dovecot/auth_dovecot/mod_auth_dovecot.lua" "$pkgdir/usr/lib/prosody/modules/mod_auth_dovecot.lua"
38 install -D "mod_auth_dovecot/auth_dovecot/sasl_dovecot.lib.lua" "$pkgdir/usr/lib/prosody/modules/sasl_dovecot.lib.lua"
41 # vim:set ts=2 sw=2 et: