aboutsummaryrefslogtreecommitdiffstats
path: root/community/notmuch
diff options
context:
space:
mode:
Diffstat (limited to 'community/notmuch')
-rw-r--r--community/notmuch/APKBUILD64
1 files changed, 64 insertions, 0 deletions
diff --git a/community/notmuch/APKBUILD b/community/notmuch/APKBUILD
new file mode 100644
index 00000000000..213c74e5a83
--- /dev/null
+++ b/community/notmuch/APKBUILD
@@ -0,0 +1,64 @@
+# Contributor: Stefan Wagner <stw@bit-strickerei.de>
+# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
+pkgname=notmuch
+pkgver=0.22.1
+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="5093abaca53f3690f091022eb9a75d8a notmuch-0.22.1.tar.gz"
+sha256sums="e739457794f3c2b363beffa3ed9e8a2786921031c80672f5b06d0880876a974b notmuch-0.22.1.tar.gz"
+sha512sums="b28ee8aa5af7172664ebc4d50c8830e645ad3e4945f5d162e44b627f3344de71b7525a444ae08f1c0650a7f94071f54cebcf3494214df80452b6ca954818deb9 notmuch-0.22.1.tar.gz"