Created
August 5, 2016 02:02
-
-
Save merrilymeredith/a20b97ffeaa133c363f5d9f71e0cdd23 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
set -eu | |
case ${1:-} in *help|-h) | |
exec perldoc $0;; | |
esac | |
cd | |
mkdir -p sandbox | |
if [ ! -d sandbox/neomutt ]; then | |
git clone https://github.com/neomutt/neomutt.git sandbox/neomutt | |
else | |
git -C sandbox/neomutt pull | |
fi | |
cd sandbox/neomutt | |
./prepare \ | |
--with-homespool=/var/spool/mail \ | |
--enable-quick-build \ | |
--with-ssl --with-sasl \ | |
--enable-hcache \ | |
--enable-imap --enable-smtp \ | |
--with-regex \ | |
>/dev/null | |
make -s -j3 | |
cd ~/bin | |
for BIN in mutt mutt_dotlock pgpewrap; do | |
ln -sf ../sandbox/neomutt/$BIN | |
done | |
:<<=cut | |
=head1 NAME | |
setup-neomutt - clone/update, build, and link neomutt | |
=head1 DESCRIPTION | |
Run to do the above. | |
=head1 REQUIREMENTS | |
=head2 Debian | |
autoconf libncursesw5-dev libssl-dev libsasl2-dev libtokyocabinet-dev links | |
gnupg2 urlscan | |
=head2 Cygwin | |
autoconf libncursesw-devel openssl-devel libsasl2-devel libgdbm4-devel links | |
gpg2 isn't available in cygwin, but there is a windows build. using it with | |
cygwin paths requires a wrapper though. | |
=cut |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment