2018-02-22 16:27:37 +00:00
|
|
|
#!/bin/bash
|
2018-04-12 18:07:33 +00:00
|
|
|
# Description: Email syncing tools plus the mu4e client
|
2018-02-27 05:15:14 +00:00
|
|
|
set -e
|
2018-02-22 16:27:37 +00:00
|
|
|
|
|
|
|
_recipe emacs
|
2018-02-23 21:17:52 +00:00
|
|
|
case $_PLATFORM in
|
|
|
|
darwin)
|
2021-01-09 21:07:22 +00:00
|
|
|
_recipe brew
|
|
|
|
_brew isync
|
2019-08-06 14:05:20 +00:00
|
|
|
EMACS=$(which emacs) _brew mu --HEAD
|
2018-02-23 21:17:52 +00:00
|
|
|
;;
|
|
|
|
*)
|
2018-04-11 03:24:23 +00:00
|
|
|
_recipe _apt
|
|
|
|
for dep in \
|
|
|
|
build-essential \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
libtool \
|
|
|
|
texinfo \
|
2021-01-09 21:07:22 +00:00
|
|
|
libgmime-3.0-dev \
|
2018-04-11 03:24:23 +00:00
|
|
|
libxapian-dev \
|
|
|
|
guile-2.0-dev \
|
|
|
|
html2text \
|
|
|
|
xdg-utils \
|
2021-01-09 21:07:22 +00:00
|
|
|
libwebkitgtk-dev \
|
|
|
|
isync
|
2018-04-11 03:24:23 +00:00
|
|
|
do
|
|
|
|
_apt $dep
|
|
|
|
done
|
|
|
|
dir=`mktemp -d` && \
|
|
|
|
pushd $dir >/dev/null
|
|
|
|
echo "[tgz] Fetching mu"
|
|
|
|
curl -sL https://github.com/djcb/mu/archive/master.tar.gz \
|
|
|
|
| tar xz --strip 1 && \
|
|
|
|
echo "[tgz] Configuring mu" && \
|
|
|
|
./autogen.sh >/dev/null 2>&1 && \
|
2021-01-09 21:07:22 +00:00
|
|
|
./configure --prefix=/usr >/dev/null 2>&1 && \
|
2018-04-11 03:24:23 +00:00
|
|
|
echo "[tgz] Building mu" && \
|
|
|
|
make >/dev/null 2>&1 && \
|
|
|
|
echo "[tgz] Installing mu" && \
|
|
|
|
sudo make install >/dev/null 2>&1
|
|
|
|
popd >/dev/null
|
|
|
|
rm -rf "$dir"
|
2018-02-23 21:17:52 +00:00
|
|
|
;;
|
|
|
|
esac
|
2018-02-22 16:27:37 +00:00
|
|
|
|
2021-01-19 05:48:07 +00:00
|
|
|
_run "[email] Creating mail directories" mkdir -p Mail/{Personal,Work,.attachments}
|
2018-02-22 16:27:37 +00:00
|
|
|
_recipe nvm
|
|
|
|
_npm imapnotify
|