9 mkdir -p sandbox |
9 mkdir -p sandbox |
10 |
10 |
11 if [ ! -d sandbox/neomutt ]; then |
11 if [ ! -d sandbox/neomutt ]; then |
12 git clone --depth 1 https://github.com/neomutt/neomutt.git sandbox/neomutt |
12 git clone --depth 1 https://github.com/neomutt/neomutt.git sandbox/neomutt |
13 else |
13 else |
|
14 make -C sandbox/neomutt clean >/dev/null 2>&1 || true |
14 git -C sandbox/neomutt pull |
15 git -C sandbox/neomutt pull |
15 fi |
16 fi |
16 |
17 |
17 cd sandbox/neomutt |
18 cd sandbox/neomutt |
18 |
19 |
19 PLATFORM="$(uname -o)" |
20 PLATFORM="$(uname -s)" |
20 HCACHE="tokyocabinet" |
21 HCACHE="tokyocabinet" |
21 |
22 |
22 case "$PLATFORM" in |
23 case "$PLATFORM" in |
23 darwin*) |
24 Darwin) |
24 # Use macports' headers |
25 # Use macports' headers |
25 OPENSSL_PREFIX=/opt/local |
26 OPENSSL_PREFIX=/opt/local |
26 ;; |
27 ;; |
27 Cygwin) |
28 Cygwin) |
28 HCACHE=lmdb |
29 HCACHE=lmdb |
29 ;; |
30 ;; |
30 esac |
31 esac |
31 |
32 |
32 ./prepare -q \ |
33 autoreconf -i --force |
|
34 |
|
35 ./configure -q \ |
33 --with-mailpath=/var/spool/mail \ |
36 --with-mailpath=/var/spool/mail \ |
34 --with-ssl${OPENSSL_PREFIX:+=$OPENSSL_PREFIX} \ |
37 --with-ssl${OPENSSL_PREFIX:+=$OPENSSL_PREFIX} \ |
35 --with-sasl \ |
38 --with-sasl \ |
36 --with-${HCACHE} \ |
39 --with-${HCACHE} \ |
37 --enable-gpgme \ |
40 --enable-gpgme \ |
38 --enable-imap --enable-smtp \ |
41 --disable-doc --disable-po |
39 |
42 |
40 make -s -j3 |
43 make -s -j3 |
41 |
44 |
42 cd ~/bin |
45 cd ~/bin |
43 for BIN in mutt mutt_dotlock pgpewrap; do |
46 for BIN in mutt mutt_dotlock pgpewrap; do |