aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dovecot-pigeonhole-plugin/APKBUILD
blob: 198f547787197a6a3802760208b1622a22d81ba6 (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
# Contributor: Kozak Ivan <kozak-iv@yandex.ru>
# Maintainer: Kozak Ivan <kozak-iv@yandex.ru>
_pkgname=dovecot-2.2-pigeonhole
pkgname=dovecot-pigeonhole-plugin
pkgver=0.4.6
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="dovecot"
depends_dev="dovecot-dev mercurial openssl-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc $pkgname-dev"
source="http://pigeonhole.dovecot.org/releases/2.2/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr --with-dovecot=/usr/lib/dovecot --disable-static || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/dovecot/*.la
	rm -f "$pkgdir"/usr/lib/dovecot/doveadm/*.la
	rm -f "$pkgdir"/usr/lib/dovecot/settings/*.la
	rm -f "$pkgdir"/usr/lib/dovecot/sieve/*.la
}

md5sums="9c41cfda06129ac85700b5ddce809d95  dovecot-2.2-pigeonhole-0.4.6.tar.gz"
sha256sums="91034669f9ce07661bbadcfb00fe50b6929bf7f616d9aa79d3f5a351d1a47d3d  dovecot-2.2-pigeonhole-0.4.6.tar.gz"
sha512sums="50b0df4438f6fc751a7dd058919628a2f3bc631c119e86356495d7de94d24b9f9cc8c11fa5e3646bc2429170bf3c9473d42542ee8b15b7c94a1502bb76042b9e  dovecot-2.2-pigeonhole-0.4.6.tar.gz"