aboutsummaryrefslogtreecommitdiffstats
path: root/community/dovecot-pigeonhole-plugin/APKBUILD
blob: e46330da1800e3a53d7ad466579e67834ba36948 (plain) (blame)
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
# 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.10
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=""
makedepends="dovecot-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
}

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

md5sums="a11632e1302d2d906267d67e761da218  dovecot-2.2-pigeonhole-0.4.10.tar.gz"
sha256sums="e9dfe7160fd3b465d6d5068f219122626ef790cce507e290cd09852c7d90726f  dovecot-2.2-pigeonhole-0.4.10.tar.gz"
sha512sums="3e864727fc2bd346a7212135a3dd8759f9a5c27abd938c4d6b805c784c5c2c5aa401dd49cfa90951348a00202b85f91d86a2fa17ccab9a983a6faf2d0add48e8  dovecot-2.2-pigeonhole-0.4.10.tar.gz"