aboutsummaryrefslogtreecommitdiffstats
path: root/community/dovecot-fts-xapian/APKBUILD
blob: 91bc063e74d876d90781cc11f2dac79a8614f5ba (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: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=dovecot-fts-xapian
pkgver=1.4.12
pkgrel=0
pkgdesc="Dovecot xapian fts plugin"
url="https://github.com/grosjo/fts-xapian"
arch="all"
license="LGPL-2.1-or-later"
depends="dovecot xapian-core"
makedepends="automake autoconf libtool dovecot-dev xapian-core-dev icu-dev chrpath"
source="$pkgname-$pkgver.tar.gz::https://github.com/grosjo/fts-xapian/archive/$pkgver.tar.gz"
builddir="$srcdir/"fts-xapian-$pkgver

prepare() {
	default_prepare
	autoreconf -vif
}

build() {
	PANDOC=false ./configure \
		--enable-static=no \
		--with-dovecot=/usr/lib/dovecot
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	chrpath -d "$pkgdir"/usr/lib/dovecot/lib21_fts_xapian_plugin.so
}

sha512sums="
820563de646cc367fcc3d0cce2b2c0ef54541e7210f25a751d569e1e58b0f8320be9401a61b9df7487710a4ae0ddd701b95324570c7d46250251bc4469538e2c  dovecot-fts-xapian-1.4.12.tar.gz
"