# Template file for 'notmuch'
pkgname=notmuch
version=0.18.1
revision=1
hostmakedepends="pkg-config"
makedepends="xapian-core-devel gmime-devel talloc-devel"
build_style=gnu-configure
configure_args="--bashcompletiondir=/usr/share/bash-completion/completions --without-emacs"
short_desc="notmuch -- the mail indexer"
maintainer="Jan S. <jan.schreib@gmail.com>"
license="GPL-3"
homepage="http://notmuchmail.org"
distfiles="http://notmuchmail.org/releases/${pkgname}-${version}.tar.gz"
checksum=f2d53dc1916283123d008a6084de860340a436631e83b1a41b2d9ced0f4db7dd
nocross=yes

libnotmuch-devel_package() {
	short_desc+=" - development files"
	depends="libnotmuch>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
	}
}

libnotmuch_package() {
	short_desc+=" - runtime library"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}
