summaryrefslogtreecommitdiffstats
path: root/testing/dovecot-pigeonhole-plugin/APKBUILD
blob: d304401b71983fd0c3c37b53dcd87f7b6b338d62 (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.2
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="e8cb4976db9811d37e9d870f2f75ffef  dovecot-2.2-pigeonhole-0.4.2.tar.gz"
sha256sums="0499f07037b86489fdc1d48fb19e298d5360ec41273bccaec230eb1bcf5a3e13  dovecot-2.2-pigeonhole-0.4.2.tar.gz"
sha512sums="3b66d00a8462ee668b8671f5eaa48bb91d47ed8bf8b331f7d879ba8c581e2bef11e236b06a8c5da9f1248572348ad0b3e2b867fd0a17badf32152fedbe61c1ed  dovecot-2.2-pigeonhole-0.4.2.tar.gz"