[arch-commits] Commit in notmuch/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Sat Mar 20 00:08:32 UTC 2021
Date: Saturday, March 20, 2021 @ 00:08:32
Author: felixonmars
Revision: 895470
archrelease: copy trunk to community-staging-x86_64
Added:
notmuch/repos/community-staging-x86_64/
notmuch/repos/community-staging-x86_64/PKGBUILD
(from rev 895469, notmuch/trunk/PKGBUILD)
notmuch/repos/community-staging-x86_64/notmuch.install
(from rev 895469, notmuch/trunk/notmuch.install)
-----------------+
PKGBUILD | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
notmuch.install | 8 ++++
2 files changed, 112 insertions(+)
Copied: notmuch/repos/community-staging-x86_64/PKGBUILD (from rev 895469, notmuch/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-03-20 00:08:32 UTC (rev 895470)
@@ -0,0 +1,104 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Maintainer: Maxim Baz <$pkgbase at maximbaz dot com>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: fauno <fauno at kiwwwi.com.ar>
+# Contributor: Olivier Ramonat <olivier at ramonat dot fr>
+# Contributor: Richard Murri <admin at richardmurri.com>
+
+pkgbase=notmuch
+pkgname=('notmuch' 'notmuch-vim' 'notmuch-mutt' 'notmuch-runtime')
+pkgver=0.31.4
+pkgrel=2
+arch=('x86_64')
+url="https://notmuchmail.org/"
+license=('GPL3')
+makedepends=('python' 'python-sphinx' 'python-cffi' 'emacs' 'gnupg' 'ruby' 'pkgconfig' 'xapian-core' 'gmime3' 'talloc')
+options=(!distcc !makeflags)
+source=("https://notmuchmail.org/releases/${pkgname}-${pkgver}.tar.xz")
+sha512sums=('f1ee212b35bcf18c36f4cedb355699b51be82c4028e5b863d5776733f58de2a3200ccf3d86aa3baa115a9c62bd06b9fcc10f5541ffd0f71a85e2cf67beb1148a')
+
+build() {
+ cd "$srcdir/$pkgbase-$pkgver"
+
+ ./configure --prefix=/usr --sysconfdir=/etc --includedir=/usr/include --zshcompletiondir=/usr/share/zsh/site-functions
+ make
+
+ make -C "contrib/${pkgbase}-mutt"
+
+ make ruby-bindings
+
+ cd "$srcdir/$pkgbase-$pkgver/bindings/python"
+ python setup.py build
+
+ cd "$srcdir/$pkgbase-$pkgver/bindings/python-cffi"
+ python setup.py build
+}
+
+package_notmuch-runtime(){
+ pkgdesc="Runtime for notmuch and notmuch-mutt"
+ depends=('xapian-core' 'gmime3' 'talloc')
+
+ cd "$srcdir/$pkgbase-$pkgver"
+
+ make DESTDIR="$pkgdir/" LIBDIR_IN_LDCONFIG=0 WITH_EMACS=0 install
+ make DESTDIR="$pkgdir/" WITH_BASH=1 install-completion
+
+ # Install manpages
+ make DESTDIR="$pkgdir" install-man
+
+ # this is provided both with and without a statically included libnotmuch.so ???
+ install -Dm755 notmuch-shared "$pkgdir/usr/bin/notmuch"
+}
+
+
+package_notmuch-vim(){
+ pkgdesc="Vim plugins for notmuch"
+ depends=('notmuch-runtime' 'ruby')
+ optdepends=('ruby-mail: for sending mail'
+ 'elinks: for previewing html mail')
+
+ make -C "$srcdir/$pkgbase-$pkgver/vim" DESTDIR="$pkgdir" prefix="/usr/share/vim/vimfiles" install
+}
+
+
+package_notmuch(){
+ pkgdesc="Notmuch is not much of an email program"
+ depends=('notmuch-runtime')
+ optdepends=('emacs: for using the emacs interface'
+ 'vim: for using the vim interface'
+ 'python-cffi: for using the python-cffi bindings'
+ 'ruby: for using the ruby bindings'
+ 'gnupg: for email encryption')
+ install=notmuch.install
+
+ cd "$srcdir/$pkgbase-$pkgver"
+
+ # Install emacs parts
+ make DESTDIR="$pkgdir" install-emacs
+
+
+ # Install ruby bindings
+ sed -i 's:INSTALL = .*[^D]$:& -D:' bindings/ruby/Makefile
+ make -C bindings/ruby exec_prefix="$pkgdir"/usr install
+
+ # Install python bindings
+ cd "$srcdir/$pkgbase-$pkgver/bindings/python"
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ cd "$srcdir/$pkgbase-$pkgver/bindings/python-cffi"
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ # Remove mimeinfo.cache (fixes FS#53629).
+ rm "$pkgdir/usr/share/applications/mimeinfo.cache"
+}
+
+package_notmuch-mutt(){
+ pkgdesc="The mail indexer"
+ depends=('notmuch-runtime' 'perl-mailtools' 'perl-mail-box' 'perl-term-readline-gnu' 'perl-string-shellquote' 'perl-file-which')
+
+ cd "$srcdir/$pkgbase-$pkgver"
+
+ install -Dm755 "contrib/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "contrib/$pkgname/${pkgname}.rc" "${pkgdir}/etc/Muttrc.d/${pkgname}.rc"
+ install -Dm644 "contrib/$pkgname/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
Copied: notmuch/repos/community-staging-x86_64/notmuch.install (from rev 895469, notmuch/trunk/notmuch.install)
===================================================================
--- community-staging-x86_64/notmuch.install (rev 0)
+++ community-staging-x86_64/notmuch.install 2021-03-20 00:08:32 UTC (rev 895470)
@@ -0,0 +1,8 @@
+post_upgrade() {
+ if (( $(vercmp $2 0.20) < 0 )); then
+ cat <<"EOF"
+==> notmuch-deliver was removed in notmuch 0.20.
+==> Please use `notmuch insert` instead.
+EOF
+ fi
+}
More information about the arch-commits
mailing list