-
Notifications
You must be signed in to change notification settings - Fork 48
/
compile-mutt
48 lines (39 loc) · 1.28 KB
/
compile-mutt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
echo "Downloading mutt..."
wget -q -O - https://bitbucket.org/mutt/mutt/downloads/mutt-1.5.23.tar.gz | tar xvfz -
pushd mutt-1.5.23
# Apply side bar patch
echo "Applying side bar patch..."
wget -q -O - http://lunar-linux.org/~tchan/mutt/patch-1.5.23.sidebar.20140412.txt | patch -p1
# Apply trash patch
echo "Applying trash patch..."
wget -q -O - http://cedricduval.free.fr/mutt/patches/download/patch-1.5.5.1.cd.trash_folder.3.4 | patch -p1
# Configure Mutt
echo "Enabling needed options..."
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-docdir=/usr/share/doc/mutt-1.5.23 \
--enable-pop \
--enable-imap \
--enable-hcache \
--without-qdbm \
--with-gdbm \
--without-bdb \
--without-tokyocabinet \
--enable-smtp \
--with-ssl \
--with-gnutls \
--with-regex \
--enable-gpgme \
--with-ssl \
--with-sasl
# Build Mutt
echo "Creating needed files for compilation..."
touch configure.ac aclocal.m4 configure Makefile.am Makefile.in
echo "Building..."
make
# Install Mutt
echo "Installing..."
sudo make install
popd
echo "Done!"