Created
January 13, 2015 21:28
-
-
Save jonhoo/9b11f9d2be232a2024d4 to your computer and use it in GitHub Desktop.
mutt-like PKGBUILD for mutt-slang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| post_install() { | |
| cat <<EOF | |
| ==> For GPG support, add the following to your muttrc: | |
| ==> source /etc/Muttrc.gpg.dist | |
| EOF | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # $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 <[email protected]> | |
| 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