aboutsummaryrefslogtreecommitdiffstats
path: root/community/dovecot-pigeonhole-plugin/APKBUILD
blob: 0b5115f2f2a097499f7510357010f3969f876f2f (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Kozak Ivan <kozak-iv@yandex.ru>
# Maintainer: Kozak Ivan <kozak-iv@yandex.ru>
pkgname=dovecot-pigeonhole-plugin
_realname=dovecot-2.2-pigeonhole
pkgver=0.4.11
pkgrel=0
pkgdesc="Pigeonhole project provides Sieve support as a plugin to Dovecot's LDA"
url="http://pigeonhole.dovecot.org"
arch="all"
license="LGPL"
depends=""
depends_dev="dovecot-dev"
makedepends="$depends_dev openssl-dev"
install=""
subpackages="$pkgname-doc $pkgname-dev $pkgname-tools"
source="http://pigeonhole.dovecot.org/releases/2.2/$_realname-$pkgver.tar.gz"

_builddir="$srcdir"/$_realname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-dovecot=/usr/lib/dovecot \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	mkdir -p "$pkgdir"/etc
	mv "$pkgdir"/usr/share/doc/dovecot/example-config "$pkgdir"/etc/dovecot
}

tools() {
	pkgdesc="Pigeonhole project provides Sieve support (test and debug tools)"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

md5sums="e48e36501ae48fc48ff47b3a4398a641  dovecot-2.2-pigeonhole-0.4.11.tar.gz"
sha256sums="5168b4ac4e173b563dd71f4024452da5a578aa8d5d047d98903489ab4d84ad72  dovecot-2.2-pigeonhole-0.4.11.tar.gz"
sha512sums="c01b23e90431da8c57f8e384d52bee0a608ce5de5a2e8cc304ab482b17473d637126704d549fbd3bc1ffffdeb41eff94e2587d1e6707a9249c15fff65631814d  dovecot-2.2-pigeonhole-0.4.11.tar.gz"