public

PKGBUILD for mutt with Lunar Linux sidebar patch.

  • Download Gist
PKGBUILD_mutt-sidebar-lunar
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
## PKGBUILD [plain_text]
# Contributor: tobias [tobias [at] archlinux.org]
# Additional : Profpatsch [https://bbs.archlinux.org/misc.php?email=68112]
 
pkgname=mutt-sidebar
pkgver=1.5.21
pkgrel=8
pkgdesc='Small but very powerful text-based mail client'
url='http://www.mutt.org/'
license=('GPL')
backup=('etc/Muttrc')
arch=('i686' 'x86_64')
conflicts=('mutt')
optdepends=('smtp-forwarder: to send mail')
depends=('gpgme' 'ncurses' 'openssl' 'libsasl' 'gdbm' 'libidn' 'mime-types' 'krb5')
provides=('mutt')
conflicts=('mutt')
source=("ftp://ftp.mutt.org/mutt/devel/mutt-${pkgver}.tar.gz"
"http://dbg.download.sourcemage.org/grimoire/codex/stable/mail/mutt/patches/trash_folder/trash_folder-1.5.18.patch.bz2"
"http://lunar-linux.org/~tchan/mutt/patch-1.5.21.sidebar.20120829.txt")
 
md5sums=('a29db8f1d51e2f10c070bf88e8a553fd'
'9d95c08295f8ec5171f774f776ef8413'
'e4bb3b47ebf56da15bbd778b8e1ce002')
 
build() {
cd "${srcdir}/mutt-${pkgver}"
 
msg "Patching... Lunar Linux Sidebar"
mv ${srcdir}/../patch-1.5.21.sidebar.20120829.txt ${srcdir}/patch-1.5.21.sidebar.20120829.patch
patch -p1 -i ${srcdir}/patch-1.5.21.sidebar.20120829.patch
 
msg "Patching... Trashfolder"
patch -p1 -i ${srcdir}/trash_folder-1.5.18.patch
 
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-gpgme \
--enable-pop \
--enable-imap \
--enable-smtp \
--enable-hcache \
--with-curses=/usr \
--with-regex \
--with-gss=/usr \
--with-ssl=/usr \
--with-sasl \
--with-idn \
 
make
}
 
package() {
cd "${srcdir}/mutt-${pkgver}"
make DESTDIR="${pkgdir}" install
 
rm "${pkgdir}"/usr/bin/{flea,muttbug}
rm "${pkgdir}"/usr/share/man/man1/{flea,muttbug}.1
rm "${pkgdir}"/etc/mime.types{,.dist}
install -Dm644 contrib/gpg.rc "${pkgdir}"/etc/Muttrc.gpg.dist
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.