Thu, 21 Dec 2017 19:56:48 -0500
update build-neomutt
290 | 1 | #!/bin/sh |
2 | set -eu | |
3 | ||
366
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
4 | case ${1:-} in *help|-h) |
446
acd0b08d467e
skip pager for tiny perldocs
Meredith Howard <mhoward@roomag.org>
parents:
437
diff
changeset
|
5 | exec perldoc -T $0;; |
366
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
6 | esac |
312 | 7 | |
290 | 8 | cd |
9 | mkdir -p sandbox | |
10 | ||
11 | if [ ! -d sandbox/neomutt ]; then | |
482
2c7cb331d2dc
Don't really need full clones
Meredith Howard <mhoward@roomag.org>
parents:
446
diff
changeset
|
12 | git clone --depth 1 https://github.com/neomutt/neomutt.git sandbox/neomutt |
290 | 13 | else |
596
8de875515620
Update for current neomutt
Meredith Howard <mhoward@roomag.org>
parents:
569
diff
changeset
|
14 | make -C sandbox/neomutt clean >/dev/null 2>&1 || true |
290 | 15 | git -C sandbox/neomutt pull |
16 | fi | |
17 | ||
18 | cd sandbox/neomutt | |
19 | ||
596
8de875515620
Update for current neomutt
Meredith Howard <mhoward@roomag.org>
parents:
569
diff
changeset
|
20 | PLATFORM="$(uname -s)" |
663 | 21 | CONFIGURE_OPTIONS='' |
569
0190a692645c
tweak for cygwin again
Meredith Howard <mhoward@roomag.org>
parents:
558
diff
changeset
|
22 | HCACHE="tokyocabinet" |
0190a692645c
tweak for cygwin again
Meredith Howard <mhoward@roomag.org>
parents:
558
diff
changeset
|
23 | |
0190a692645c
tweak for cygwin again
Meredith Howard <mhoward@roomag.org>
parents:
558
diff
changeset
|
24 | case "$PLATFORM" in |
596
8de875515620
Update for current neomutt
Meredith Howard <mhoward@roomag.org>
parents:
569
diff
changeset
|
25 | Darwin) |
388 | 26 | # Use macports' headers |
663 | 27 | CONFIGURE_OPTIONS='--with-ssl=/opt/local --with-gpgme=/opt/local' |
569
0190a692645c
tweak for cygwin again
Meredith Howard <mhoward@roomag.org>
parents:
558
diff
changeset
|
28 | ;; |
388 | 29 | esac |
30 | ||
663 | 31 | autoreconf -i --force || true |
596
8de875515620
Update for current neomutt
Meredith Howard <mhoward@roomag.org>
parents:
569
diff
changeset
|
32 | |
663 | 33 | ./configure \ |
546 | 34 | --with-mailpath=/var/spool/mail \ |
663 | 35 | --ssl \ |
36 | --sasl \ | |
37 | --lmdb \ | |
38 | --gpgme \ | |
39 | $CONFIGURE_OPTIONS \ | |
40 | --disable-doc | |
293
7df7f79939f0
drop hcache, make default
Meredith Howard <mhoward@roomag.org>
parents:
291
diff
changeset
|
41 | |
321 | 42 | make -s -j3 |
290 | 43 | |
44 | cd ~/bin | |
645
2b7084ae3b6c
neomutt binary is now neomutt
Meredith Howard <mhoward@roomag.org>
parents:
596
diff
changeset
|
45 | for BIN in neomutt mutt_dotlock pgpewrap; do |
364 | 46 | ln -sf ../sandbox/neomutt/$BIN |
47 | done | |
645
2b7084ae3b6c
neomutt binary is now neomutt
Meredith Howard <mhoward@roomag.org>
parents:
596
diff
changeset
|
48 | ln -sf ../sandbox/neomutt/neomutt mutt |
290 | 49 | |
366
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
50 | :<<=cut |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
51 | =head1 NAME |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
52 | |
446
acd0b08d467e
skip pager for tiny perldocs
Meredith Howard <mhoward@roomag.org>
parents:
437
diff
changeset
|
53 | setup-neomutt - Clone/update and build neomutt |
366
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
54 | |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
55 | =head1 DESCRIPTION |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
56 | |
446
acd0b08d467e
skip pager for tiny perldocs
Meredith Howard <mhoward@roomag.org>
parents:
437
diff
changeset
|
57 | Run to do the above, incl. symlinking relevant binaries in C<~/bin> to the |
acd0b08d467e
skip pager for tiny perldocs
Meredith Howard <mhoward@roomag.org>
parents:
437
diff
changeset
|
58 | neomutt build. |
366
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
59 | |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
60 | =head1 REQUIREMENTS |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
61 | |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
62 | =head2 Debian |
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
63 | |
558 | 64 | apt install autoconf links pandoc gnupg2 gpgsm urlscan libncursesw5-dev \ |
663 | 65 | libssl-dev libsasl2-dev liblmdb-dev libgpgme11-dev |
366
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
66 | |
569
0190a692645c
tweak for cygwin again
Meredith Howard <mhoward@roomag.org>
parents:
558
diff
changeset
|
67 | =head2 Cygwin / Babun |
0190a692645c
tweak for cygwin again
Meredith Howard <mhoward@roomag.org>
parents:
558
diff
changeset
|
68 | |
0190a692645c
tweak for cygwin again
Meredith Howard <mhoward@roomag.org>
parents:
558
diff
changeset
|
69 | pact install autoconf links libncursesw-devel openssl-devel libsasl2-devel \ |
0190a692645c
tweak for cygwin again
Meredith Howard <mhoward@roomag.org>
parents:
558
diff
changeset
|
70 | liblmdb-devel libgpgme-devel |
0190a692645c
tweak for cygwin again
Meredith Howard <mhoward@roomag.org>
parents:
558
diff
changeset
|
71 | |
0190a692645c
tweak for cygwin again
Meredith Howard <mhoward@roomag.org>
parents:
558
diff
changeset
|
72 | gpg2 isn't available in cygwin, but there is a windows build. using it with |
0190a692645c
tweak for cygwin again
Meredith Howard <mhoward@roomag.org>
parents:
558
diff
changeset
|
73 | cygwin paths requires a wrapper though. |
0190a692645c
tweak for cygwin again
Meredith Howard <mhoward@roomag.org>
parents:
558
diff
changeset
|
74 | |
366
8d2d058ea98b
fixup and doc for cygwin/babun
Meredith Howard <mhoward@roomag.org>
parents:
364
diff
changeset
|
75 | =cut |