[arch-commits] Commit in notmuch/repos (8 files)
Jelle van der Waa
jelle at archlinux.org
Sun Sep 20 15:22:05 UTC 2015
Date: Sunday, September 20, 2015 @ 17:22:05
Author: jelle
Revision: 141296
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
notmuch/repos/community-staging-i686/
notmuch/repos/community-staging-i686/PKGBUILD
(from rev 141295, notmuch/trunk/PKGBUILD)
notmuch/repos/community-staging-i686/notmuch-vim.install
(from rev 141295, notmuch/trunk/notmuch-vim.install)
notmuch/repos/community-staging-i686/notmuch.install
(from rev 141295, notmuch/trunk/notmuch.install)
notmuch/repos/community-staging-x86_64/
notmuch/repos/community-staging-x86_64/PKGBUILD
(from rev 141295, notmuch/trunk/PKGBUILD)
notmuch/repos/community-staging-x86_64/notmuch-vim.install
(from rev 141295, notmuch/trunk/notmuch-vim.install)
notmuch/repos/community-staging-x86_64/notmuch.install
(from rev 141295, notmuch/trunk/notmuch.install)
----------------------------------------------+
community-staging-i686/PKGBUILD | 103 +++++++++++++++++++++++++
community-staging-i686/notmuch-vim.install | 21 +++++
community-staging-i686/notmuch.install | 8 +
community-staging-x86_64/PKGBUILD | 103 +++++++++++++++++++++++++
community-staging-x86_64/notmuch-vim.install | 21 +++++
community-staging-x86_64/notmuch.install | 8 +
6 files changed, 264 insertions(+)
Copied: notmuch/repos/community-staging-i686/PKGBUILD (from rev 141295, notmuch/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-09-20 15:22:05 UTC (rev 141296)
@@ -0,0 +1,103 @@
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Maintainer: Lukas Fleischer <lfleischer at archlinux dot org>
+# 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.20.2
+pkgrel=2
+arch=('i686' 'x86_64')
+url="http://notmuchmail.org/"
+license=('GPL3')
+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=('4042de105925bb693f5f9c750bed28d1')
+
+prepare(){
+ cp -dpr --no-preserve=ownership "$srcdir/${pkgname}-$pkgver"/bindings/python{,2}
+ find "$srcdir/${pkgname}-${pkgver}/bindings/python" -name '*.py' -exec sed -i -e '1s,python$,python3,' {} +
+ find "$srcdir/${pkgname}-${pkgver}/bindings/python2" -name '*.py' -exec sed -i -e '1s,python$,python2,' {} +
+}
+
+build() {
+ cd "$srcdir/$pkgbase-$pkgver"
+
+ ./configure --prefix=/usr --sysconfdir=/etc --includedir=/usr/include --without-zsh-completion
+ make
+
+ make -C "contrib/${pkgbase}-mutt" "${pkgname}-mutt.1"
+
+ cd "$srcdir/$pkgbase-$pkgver/bindings/ruby"
+ ruby extconf.rb --vendor
+
+ cd "$srcdir/$pkgbase-$pkgver/bindings/python"
+ python setup.py build
+
+ cd "$srcdir/$pkgbase-$pkgver/bindings/python2"
+ python2 setup.py build
+}
+
+package_notmuch-runtime(){
+ pkgdesc="Runtime for notmuch and notmuch-mutt"
+ depends=('xapian-core' 'gmime' 'talloc')
+
+ cd "$srcdir/$pkgbase-$pkgver"
+
+ make DESTDIR="$pkgdir/" LIBDIR_IN_LDCONFIG=0 WITH_EMACS=0 install
+
+ install -Dm755 notmuch "$pkgdir/usr/bin/notmuch"
+ rm -rf "$pkgdir/usr/share"
+}
+
+
+package_notmuch-vim(){
+ pkgdesc="Vim plugins for notmuch"
+ depends=('notmuch-runtime')
+ install=notmuch-vim.install
+
+ 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'
+ 'python2: for using the python2 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 manpages
+ make DESTDIR="$pkgdir" prefix="/usr" install-man
+
+ # Install ruby bindings
+ sed -i 's:INSTALL = .*[^D]$:& -D:' bindings/ruby/Makefile
+ make -C bindings/ruby exec_prefix=$pkgdir/usr prefix=/usr install
+
+ # Install python bindings
+ cd "$srcdir/$pkgbase-$pkgver/bindings/python"
+ python setup.py install --prefix=/usr --root="$pkgdir"
+
+ cd "$srcdir/$pkgbase-$pkgver/bindings/python2"
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+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}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
Copied: notmuch/repos/community-staging-i686/notmuch-vim.install (from rev 141295, notmuch/trunk/notmuch-vim.install)
===================================================================
--- community-staging-i686/notmuch-vim.install (rev 0)
+++ community-staging-i686/notmuch-vim.install 2015-09-20 15:22:05 UTC (rev 141296)
@@ -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
+}
Copied: notmuch/repos/community-staging-i686/notmuch.install (from rev 141295, notmuch/trunk/notmuch.install)
===================================================================
--- community-staging-i686/notmuch.install (rev 0)
+++ community-staging-i686/notmuch.install 2015-09-20 15:22:05 UTC (rev 141296)
@@ -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
+}
Copied: notmuch/repos/community-staging-x86_64/PKGBUILD (from rev 141295, notmuch/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-09-20 15:22:05 UTC (rev 141296)
@@ -0,0 +1,103 @@
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Maintainer: Lukas Fleischer <lfleischer at archlinux dot org>
+# 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.20.2
+pkgrel=2
+arch=('i686' 'x86_64')
+url="http://notmuchmail.org/"
+license=('GPL3')
+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=('4042de105925bb693f5f9c750bed28d1')
+
+prepare(){
+ cp -dpr --no-preserve=ownership "$srcdir/${pkgname}-$pkgver"/bindings/python{,2}
+ find "$srcdir/${pkgname}-${pkgver}/bindings/python" -name '*.py' -exec sed -i -e '1s,python$,python3,' {} +
+ find "$srcdir/${pkgname}-${pkgver}/bindings/python2" -name '*.py' -exec sed -i -e '1s,python$,python2,' {} +
+}
+
+build() {
+ cd "$srcdir/$pkgbase-$pkgver"
+
+ ./configure --prefix=/usr --sysconfdir=/etc --includedir=/usr/include --without-zsh-completion
+ make
+
+ make -C "contrib/${pkgbase}-mutt" "${pkgname}-mutt.1"
+
+ cd "$srcdir/$pkgbase-$pkgver/bindings/ruby"
+ ruby extconf.rb --vendor
+
+ cd "$srcdir/$pkgbase-$pkgver/bindings/python"
+ python setup.py build
+
+ cd "$srcdir/$pkgbase-$pkgver/bindings/python2"
+ python2 setup.py build
+}
+
+package_notmuch-runtime(){
+ pkgdesc="Runtime for notmuch and notmuch-mutt"
+ depends=('xapian-core' 'gmime' 'talloc')
+
+ cd "$srcdir/$pkgbase-$pkgver"
+
+ make DESTDIR="$pkgdir/" LIBDIR_IN_LDCONFIG=0 WITH_EMACS=0 install
+
+ install -Dm755 notmuch "$pkgdir/usr/bin/notmuch"
+ rm -rf "$pkgdir/usr/share"
+}
+
+
+package_notmuch-vim(){
+ pkgdesc="Vim plugins for notmuch"
+ depends=('notmuch-runtime')
+ install=notmuch-vim.install
+
+ 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'
+ 'python2: for using the python2 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 manpages
+ make DESTDIR="$pkgdir" prefix="/usr" install-man
+
+ # Install ruby bindings
+ sed -i 's:INSTALL = .*[^D]$:& -D:' bindings/ruby/Makefile
+ make -C bindings/ruby exec_prefix=$pkgdir/usr prefix=/usr install
+
+ # Install python bindings
+ cd "$srcdir/$pkgbase-$pkgver/bindings/python"
+ python setup.py install --prefix=/usr --root="$pkgdir"
+
+ cd "$srcdir/$pkgbase-$pkgver/bindings/python2"
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+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}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
Copied: notmuch/repos/community-staging-x86_64/notmuch-vim.install (from rev 141295, notmuch/trunk/notmuch-vim.install)
===================================================================
--- community-staging-x86_64/notmuch-vim.install (rev 0)
+++ community-staging-x86_64/notmuch-vim.install 2015-09-20 15:22:05 UTC (rev 141296)
@@ -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
+}
Copied: notmuch/repos/community-staging-x86_64/notmuch.install (from rev 141295, notmuch/trunk/notmuch.install)
===================================================================
--- community-staging-x86_64/notmuch.install (rev 0)
+++ community-staging-x86_64/notmuch.install 2015-09-20 15:22:05 UTC (rev 141296)
@@ -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