Skip to content

Instantly share code, notes, and snippets.

@jonhoo jonhoo/PKGBUILD
Created Jan 13, 2015

Embed
What would you like to do?
mutt-like PKGBUILD for mutt-slang
post_install() {
cat <<EOF
==> For GPG support, add the following to your muttrc:
==> source /etc/Muttrc.gpg.dist
EOF
}
# $Id: PKGBUILD 207672 2014-03-13 00:02:32Z bisson $
# Maintainer: Sean Greenslade <sean at seangreenslade dot com>
# Contributor: tobias [tobias [at] archlinux.org]
# Contributor: Gaetan Bisson <bisson@archlinux.org>
pkgbase=mutt
pkgname=${pkgbase}-slang
pkgver=1.5.23
pkgrel=2
pkgdesc='Small but very powerful text-based mail client'
url='http://www.mutt.org/'
provides=('mutt')
conflicts=('mutt')
license=('GPL')
backup=('etc/Muttrc')
arch=('i686' 'x86_64')
optdepends=('smtp-forwarder: to send mail')
depends=('gpgme' 'slang' 'openssl' 'libsasl' 'gdbm' 'libidn' 'mime-types' 'krb5')
source=("https://bitbucket.org/mutt/mutt/downloads/${pkgbase}-${pkgver}.tar.gz")
sha1sums=('8ac821d8b1e25504a31bf5fda9c08d93a4acc862')
install=${pkgname}.install
build() {
cd "${srcdir}/${pkgbase}-${pkgver}"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-gpgme \
--enable-pop \
--enable-imap \
--enable-smtp \
--enable-hcache \
--with-slang=/usr \
--with-regex \
--with-gss=/usr \
--with-ssl=/usr \
--with-sasl \
--with-idn \
make
}
package() {
cd "${srcdir}/${pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm "${pkgdir}"/etc/mime.types{,.dist}
rm "${pkgdir}"/usr/bin/{flea,muttbug}
rm "${pkgdir}"/usr/share/man/man1/{flea,muttbug}.1
install -Dm644 contrib/gpg.rc "${pkgdir}"/etc/Muttrc.gpg.dist
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.