Created
November 13, 2013 14:54
-
-
Save anonymous/7450362 to your computer and use it in GitHub Desktop.
PKGBUILD for mutt-sidebar version 1.5.22-1.
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
## PKGBUILD [plain_text] | |
# Contributor: tobias [tobias [at] archlinux.org] | |
pkgname=mutt-sidebar | |
pkgver=1.5.22 | |
pkgrel=1 | |
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" | |
"patch-1.5.22.sidebar.20131113.txt" | |
) | |
prepare() { | |
cd "${srcdir}/mutt-${pkgver}" | |
msg "Patching... Sidebar" | |
patch -p1 -i ${srcdir}/patch-1.5.22.sidebar.20131113.txt | |
msg "Patching... Trashfolder" | |
patch -p1 -i ${srcdir}/trash_folder-1.5.18.patch | |
} | |
build() { | |
cd "${srcdir}/mutt-${pkgver}" | |
autoreconf -fi | |
./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 | |
} | |
# vim:set ts=2 sw=2 et: | |
md5sums=('48267aba1bc53db636777f4a1ec87cb6' | |
'9d95c08295f8ec5171f774f776ef8413' | |
'051439a7b29bd6e4471e014e4063c2cb') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment