Last active
August 29, 2015 13:55
-
-
Save asergi/8691210 to your computer and use it in GitHub Desktop.
mutt 1.5.23 Arch Linux PKGBUILD with sidebar patch from OpenBSD, Gentoo (based on)
This file contains 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
# Maintainer: Alessio Sergi <asergi at archlinux dot us> | |
# Contributor: tobias [tobias [at] archlinux.org] | |
# Contributor: Gaetan Bisson <bisson@archlinux.org> | |
pkgname=mutt | |
pkgver=1.5.23 | |
pkgrel=1 | |
pkgdesc='Small but very powerful text-based mail client' | |
arch=('i686' 'x86_64') | |
url='http://www.mutt.org/' | |
license=('GPL') | |
depends=('gpgme' 'krb5' 'libidn' 'mime-types') | |
optdepends=('smtp-forwarder: to send mail') | |
groups=('modified') | |
source=("https://bitbucket.org/mutt/mutt/downloads/mutt-${pkgver}.tar.gz" | |
"ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/mutt/sidebar-1.5.22.diff1.gz" | |
"ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/mutt/trashfolder-1.5.22.diff0.gz") | |
sha1sums=('8ac821d8b1e25504a31bf5fda9c08d93a4acc862' | |
'ed69fc3ac9a137a33956b08e2ed4243bcad0a2aa' | |
'c597566c26e270b99c6f57e046512a663d2f415e') | |
prepare() { | |
cd "$srcdir/$pkgname-$pkgver" | |
# patch to add trash folder support | |
patch -Np1 -i "$srcdir"/trashfolder-1.5.22.diff0 | |
# patch to add sidebar support | |
patch -Np1 -i "$srcdir"/sidebar-1.5.22.diff1 | |
# fix automake issue | |
autoreconf -vfi | |
} | |
build() { | |
cd "$srcdir/$pkgname-$pkgver" | |
./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/$pkgname-$pkgver" | |
make DESTDIR="$pkgdir" install | |
# remove unneeded or conflicting files | |
rm "$pkgdir"/etc/mime.types{,.dist} | |
rm "$pkgdir"/usr/bin/{flea,muttbug} | |
rm "$pkgdir"/usr/share/man/man1/{flea,muttbug}.1 | |
# install Muttrc.gpg file | |
install -D -m 644 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