summaryrefslogtreecommitdiffstats
path: root/testing/dovecot-deleted-to-trash-plugin/APKBUILD
blob: 91a8028ef94671348e8ce72b1f99819f5da2dce5 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dovecot-deleted-to-trash-plugin
pkgver=0.3
pkgrel=1
pkgdesc="Copy deleted email to trash for broken IMAP clients (Outlook)"
url="http://wiki2.dovecot.org/Plugins/deleted-to-trash"
arch="all"
license="unknown"
depends=""
makedepends="dovecot-dev"
install=""
subpackages=""
source="http://dev.alpinelinux.org/archive/dovecot-deleted-to-trash-plugin/dovecot-deleted-to-trash-plugin-$pkgver.tar.bz2"

_builddir="$srcdir"/dovecot-deleted-to-trash-plugin-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" \
		DOVECOT_IMAP_PLUGIN_PATH=/usr/lib/dovecot
}

md5sums="63bdfa71312abc2dcaae5cfedd1db622  dovecot-deleted-to-trash-plugin-0.3.tar.bz2"