Date: Monday, June 30, 2014 @ 22:25:23 Author: dwallace Revision: 113819
upgpkg: notmuch 0.18.1-1 upgpkg: notmuch 0.18.1-1 Added: notmuch/trunk/notmuch.install Modified: notmuch/trunk/PKGBUILD -----------------+ PKGBUILD | 25 +++++++++++++++++-------- notmuch.install | 21 +++++++++++++++++++++ 2 files changed, 38 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-06-30 19:54:25 UTC (rev 113818) +++ PKGBUILD 2014-06-30 20:25:23 UTC (rev 113819) @@ -6,15 +6,15 @@ pkgbase=notmuch pkgname=('notmuch' 'notmuch-vim' 'notmuch-mutt' 'notmuch-runtime') -pkgver=0.18 +pkgver=0.18.1 pkgrel=1 arch=('i686' 'x86_64') url="http://notmuchmail.org/" license=('GPL3') -makedepends=('python2' 'python' 'emacs' 'gnupg' 'ruby' 'pkgconfig' 'xapian-core' 'gmime' 'talloc') +makedepends=('python2' 'python' 'python-sphinx' 'emacs' 'gnupg' 'ruby' 'pkgconfig' 'xapian-core' 'gmime' 'talloc') options=(!distcc !makeflags) source=("http://notmuchmail.org/releases/${pkgname}-${pkgver}.tar.gz") -md5sums=('f28f11af1acfb6d9adde2eec600bc27a') +md5sums=('12150aefea58ed0922b48c9494f17ddd') prepare(){ #cp -dpr --no-preserve=ownership "$srcdir/$pkgname-$pkgver" "$srcdir/$pkgname-runtime-$pkgver" @@ -55,8 +55,9 @@ pkgdesc="Runtime for notmuch and notmuch-mutt" depends=('xapian-core' 'gmime' 'talloc') cd "$srcdir/${pkgbase}-$pkgver" - make DESTDIR="$pkgdir/" LIBDIR_IN_LDCONFIG=0 install + make DESTDIR="$pkgdir/" LIBDIR_IN_LDCONFIG=0 WITH_EMACS=0 install install -Dm755 notmuch $pkgdir/usr/bin/notmuch + rm -rf $pkgdir/usr/share } @@ -63,8 +64,8 @@ package_notmuch-vim(){ pkgdesc="Vim plugins for notmuch" depends=('notmuch-runtime') - mkdir -p "$pkgdir"/usr/share/vim/vimfiles/{plugin,syntax} - make -C "$srcdir/$pkgbase-$pkgver/vim" prefix="$pkgdir/usr/share/vim/vimfiles" install + install=notmuch.install + make -C "$srcdir/$pkgbase-$pkgver/vim" DESTDIR="$pkgdir" prefix="/usr/share/vim/vimfiles" install } @@ -78,8 +79,15 @@ 'gnupg: for email encryption') cd "$srcdir/${pkgname}-$pkgver" + + # Install emacs parts + make DESTDIR="$pkgdir/" install-emacs + + # Install manpages + make DESTDIR="$pkgdir" prefix="/usr" install-man + # Install ruby bindings - sed -i -e 's,/site_ruby,,g' bindings/ruby/Makefile + sed -i 's:INSTALL = .*[^D]$:& -D:' bindings/ruby/Makefile make -C bindings/ruby exec_prefix=$pkgdir/usr prefix=/usr install # Install notmuch-deliver @@ -91,6 +99,7 @@ cd "$srcdir/${pkgname}-${pkgver}/bindings/python" python setup.py install --prefix=/usr --root="$pkgdir" + } package_notmuch-mutt(){ @@ -102,4 +111,4 @@ install -Dm644 "contrib/$pkgname/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" } -#vim: set filetype=PKGBUILD sw=4 ts=4 et +#vim: filetype=PKGBUILD sw=4 ts=4 et Added: notmuch.install =================================================================== --- notmuch.install (rev 0) +++ notmuch.install 2014-06-30 20:25:23 UTC (rev 113819) @@ -0,0 +1,21 @@ +update_tags() { + echo -n "Updating vim help tags... " + /usr/bin/vim --noplugins -u NONE -U NONE \ + --cmd ":helptags /usr/share/vim/vimfiles/doc" \ + --cmd ":q" > /dev/null 2>&1 + echo "done." +} + +post_install() { + update_tags + echo + echo '-> To run type "vim -c NotMuch"' +} + +post_upgrade() { + update_tags +} + +post_remove() { + update_tags +}