# Contributor: Stefan Wagner # Maintainer: Stefan Wagner pkgname=notmuch pkgver=0.22.2 pkgrel=0 pkgdesc="E-Mail index, search and tagging" url="https://notmuchmail.org/" arch="all" license="GPL3" makedepends="gzip xapian-core-dev gmime-dev talloc-dev py-sphinx bash-completion" subpackages=" $pkgname-dev $pkgname-doc $pkgname-zsh-completion:zshcomp $pkgname-bash-completion:bashcomp" source="https://notmuchmail.org/releases/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --bashcompletiondir=/usr/share/bash-completion/completions \ --zshcompletiondir=/usr/share/zsh/site-functions \ || return 1 make PREFIX=/usr DESTDIR="$pkgdir" } package() { cd "$builddir" make PREFIX=/usr DESTDIR="$pkgdir" install } bashcomp() { depends="" pkgdesc="Bash completions for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel bash-completion" arch="noarch" mkdir -p "$subpkgdir"/usr/share/bash-completion/completions/ mv "$pkgdir"/usr/share/bash-completion/completions/$pkgname \ "$subpkgdir"/usr/share/bash-completion/completions/ || return 1 } zshcomp() { depends="" pkgdesc="Zsh completions for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel zsh" arch="noarch" mkdir -p "$subpkgdir"/usr/share/zsh/site-functions/ mv "$pkgdir"/usr/share/zsh/site-functions/_${pkgname} \ "$subpkgdir"/usr/share/zsh/site-functions/ || return 1 } md5sums="211208cbf96fb85f68c0a9fc4196171e notmuch-0.22.2.tar.gz" sha256sums="6cd19c61634079981b2d8f4b7cb4eb953cba2a36272520603682d813d2bd7ed1 notmuch-0.22.2.tar.gz" sha512sums="cc11feb8d1c2c7959a42e032c1e36e828290a8e8477af8936a27654117fbc2e080c71fe69ec92bd80763d9d3b163d45b7c0fa9fe9c4ec649600fa928110da4ee notmuch-0.22.2.tar.gz"