aboutsummaryrefslogblamecommitdiffstats
path: root/community/notmuch/APKBUILD
blob: ffcc291da987cbf7fe4fb7778819c3752f927794 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                    

             



                                          

                                                      

                    
                    

                                                 




                                                                 









                                                                            
                                                      


           

                                                  

 



                                                              









                                                                               





                                                                      


                                                                                                                                                                    
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=notmuch
pkgver=0.23.3
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:noarch
	$pkgname-bash-completion:bashcomp:noarch"
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" || return 1
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" \
		-C "$builddir" install || return 1
}

bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	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"

	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="f7da28273789b216ecadcddbb018b5a0  notmuch-0.23.3.tar.gz"
sha256sums="0f5da5cf0203b774e345c50d56e975a87c2fc5407ef4ea284b6e2b55a8951882  notmuch-0.23.3.tar.gz"
sha512sums="232a4133d70d074e6d38b00471145ecec342a5e138822cce01b6915e2b3de29fc1181e116d1df30e2fea04d519f53297fd8ea0e9d0df91bc8d6fce549feed1e3  notmuch-0.23.3.tar.gz"