aboutsummaryrefslogblamecommitdiffstats
path: root/community/notmuch/APKBUILD
blob: ae3d8231496a919845e42a0db629f08f7bce1878 (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.2
pkgrel=1
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="6b8311cf271d22dbc7630d32ed0731e1  notmuch-0.23.2.tar.gz"
sha256sums="edfd7528d43bf1e1ab2620607f9fdcf772603455a61c2eb49978619c352c97bc  notmuch-0.23.2.tar.gz"
sha512sums="487f70ef613962275dc81532cea62f287933bdb7a695466ce5ce0c5913ce06597abb152bac7126457997da710bbd716d30cee408a83b6bad4343407a5a9a202e  notmuch-0.23.2.tar.gz"