diff options
Diffstat (limited to 'neomutt.sh')
-rwxr-xr-x | neomutt.sh | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/neomutt.sh b/neomutt.sh new file mode 100755 index 0000000..9e6c531 --- /dev/null +++ b/neomutt.sh | |||
@@ -0,0 +1,53 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | set -euxo pipefail | ||
4 | |||
5 | RELEASE="neomutt-$(date +%Y%m%d)" | ||
6 | |||
7 | #curl -Ls https://github.com/neomutt/neomutt/archive/master.tar.gz | \ | ||
8 | curl -Ls https://github.com/neomutt/neomutt/archive/neomutt-20180716.tar.gz | \ | ||
9 | tar -xz -C /build/source --strip-components=1 | ||
10 | |||
11 | apt-get install -y \ | ||
12 | docbook-xml \ | ||
13 | docbook-xsl \ | ||
14 | gettext \ | ||
15 | libgnutls28-dev \ | ||
16 | libgpgme-dev \ | ||
17 | libidn11-dev \ | ||
18 | libkrb5-dev \ | ||
19 | liblua5.3-dev \ | ||
20 | libncursesw5-dev \ | ||
21 | libnotmuch-dev \ | ||
22 | libsasl2-dev \ | ||
23 | libtokyocabinet-dev \ | ||
24 | libxml2-utils \ | ||
25 | xsltproc | ||
26 | |||
27 | cd /build/source | ||
28 | ./configure --prefix="/build/target/$RELEASE" \ | ||
29 | --with-lock=fcntl \ | ||
30 | --with-ui=ncurses \ | ||
31 | --gpgme \ | ||
32 | --lua \ | ||
33 | --with-lua=/usr \ | ||
34 | --notmuch \ | ||
35 | --gnutls \ | ||
36 | --gss \ | ||
37 | --idn \ | ||
38 | --mixmaster \ | ||
39 | --sasl \ | ||
40 | --tokyocabinet | ||
41 | |||
42 | make && make install | ||
43 | |||
44 | # Neomutt needs some post install libraries | ||
45 | cd /build/target | ||
46 | touch install-neomutt.sh && chmod +x install-neomutt.sh | ||
47 | cat > install-neomutt.sh <<EOF | ||
48 | #!/bin/bash | ||
49 | sudo apt-get install -y libtokyocabinet9 libnotmuch5 | ||
50 | rm install-neomutt.sh | ||
51 | EOF | ||
52 | |||
53 | tar -C /build/target -cvzf /output/${RELEASE}.tar.gz ${RELEASE} install-neomutt.sh | ||