blob: 15aba681ec182dcce45deba7b5c32a0c251ebf53 (
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
|
# Contributor: Sebastian Köhler <sebkoehler@whoami.org.uk>
pkgname=pigeonhole-hg
pkgver=1380
pkgrel=1
pkgdesc="Fully rewritten Sieve implementation for Dovecot v2.0"
arch=('i686' 'x86_64')
url="http://pigeonhole.dovecot.org/"
license=('LGPL')
depends=('dovecot>=2.0.0')
makedepends=('mercurial')
conflicts=('dovecot-sieve')
_hgroot="http://hg.rename-it.nl/"
_hgrepo="dovecot-2.0-pigeonhole"
build() {
cd "$srcdir"
msg "Connecting to Mercurial server...."
if [ -d $_hgrepo ] ; then
cd $_hgrepo
hg pull -u
msg "The local files are updated."
else
hg clone $_hgroot$_hgrepo
fi
msg "Mercurial checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_hgrepo-build"
cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
cd "$srcdir/$_hgrepo-build"
./autogen.sh
./configure --prefix=/usr --with-dovecot=/usr/lib/dovecot
make
make DESTDIR="$pkgdir/" install
}
|