updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / prosody-auth-dovecot-hg / PKGBUILD
blob58f715be2a290dc5da3756e1bc71601800e43841
1 # Maintainer: Calvin McAnarney <calvin@mcanarney.org>
2 pkgname=prosody-auth-dovecot-hg
3 pkgver=501
4 pkgrel=1
5 pkgdesc="Dovecot authentication module for prosody"
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/prosody-modules"
8 license=('MIT')
9 depends=('prosody')
10 makedepends=('mercurial')
12 _hgroot=https://prosody-modules.googlecode.com/hg
13 _hgrepo=prosody-modules
15 build() {
16   cd "$srcdir"
17   msg "Connecting to Mercurial server...."
19   if [[ -d "$_hgrepo" ]]; then
20     cd "$_hgrepo"
21     hg pull -u
22     msg "The local files are updated."
23   else
24     hg clone "$_hgroot" "$_hgrepo"
25   fi
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"
35 package() {
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: