You are not logged in.

#1 2010-02-01 21:04:05

skualito
Member
Registered: 2008-11-19
Posts: 203

Mutt with sidebar and nntp

Hi all

I switched from claws-mail to mutt recently, and was missing reading the gmane newsgroup along with my emails. After quite some googling and search on aur I couldn't find an easy way to get mutt with combined sidebar and nntp support. Though I found a post about a debian user packaging it for debian (with some other additional patches). Inspired by that, I modified the patch-1.5.20.vvv.nntp.2 from http://mutt.org.ua/download/current/ to apply with sidebar patch. The PKGBUILD is from the mutt-sidebar in AUR, but without the trash and unmailbox patches. It builds fine on my computer, and works fine so far. The doc is also patched so it's easy to setup mutt to read the news. If anyone have comments, please let me know.
Do you think this PKGBUILD is ok for uploading to AUR ?

# Contributor : skualito <lepascalou AT gmail DoT CoM>
pkgname=mutt-sidebar-nntp
pkgver=1.5.20
pkgrel=2
pkgdesc="A small but very powerful text-based mail client with sidebar-patch and nntp support"
patchdate="20090619"
arch=('i686' 'x86_64')
url="http://lunar-linux.org/index.php?page=mutt-sidebar"
depends=('openssl' 'gdbm' 'mime-types' 'libsasl')
makedepends=('gnupg' 'gpgme')
conflicts=('mutt')
provides=('mutt')
source=(ftp://ftp.mutt.org/mutt/devel/mutt-${pkgver}.tar.gz http://lunar-linux.org/~tchan/mutt/patch-${pkgver}.sidebar.$patchdate.txt  muttrc.example patch-1.5.20.vvv.nntp.2)
md5sums=('027cdd9959203de0c3c64149a7ee351c' '5786519489877c92e4fff68cf547e869' '336d1d8e290a0595dbe2cd92d720ffc9' '1aefc046f02b1bbea3ae4b2e8e6a25de')
license=('GPL')

build() {
  cd $startdir/src/mutt-$pkgver
  # patch a segfault bug in 1.5.20 -- remove for next release
  patch -p1 -i ../patch-${pkgver}.sidebar.$patchdate.txt
  patch -p1 -i ../patch-${pkgver}.vvv.nntp.2
  aclocal -I m4
  autoheader
  automake --foreign
  autoconf
  ./configure --prefix=/usr --sysconfdir=/etc \
  --enable-pop --enable-imap --enable-nntp --enable-smtp --enable-pgp --enable-hcache \
  --enable-gpgme --with-ssl=/usr --with-sasl --without-idn \
  --with-regex --with-slang|| return 1
  make || return 1
  make DESTDIR=$startdir/pkg install
  rm -f ${pkgdir}/usr/bin/{flea,muttbug}
  rm -f ${pkgdir}/usr/share/man/man1/{flea,muttbug}.1
  rm -f ${pkgdir}/etc/mime.types*
  install -m644 -D ${startdir}/src/muttrc.example ${startdir}/pkg/etc/muttrc.example
}

EDIT: Actually I realize that from here you cannot acces the modified patch. Hem. I guess I'll upload the package to AUR.
It's there http://aur.archlinux.org/packages.php?ID=34238

Last edited by skualito (2010-02-01 21:23:08)

Offline

Board footer

Powered by FluxBB