mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-22 03:00:05 +00:00
48 lines
1.2 KiB
Bash
48 lines
1.2 KiB
Bash
#!/bin/bash
|
|
# Description: Email syncing tools plus the mu4e client
|
|
set -e
|
|
|
|
_recipe brew
|
|
_brew isync
|
|
|
|
_recipe emacs
|
|
case $_PLATFORM in
|
|
darwin)
|
|
EMACS=$(which emacs) _brew mu --HEAD
|
|
;;
|
|
*)
|
|
_recipe _apt
|
|
for dep in \
|
|
build-essential \
|
|
autoconf \
|
|
automake \
|
|
libtool \
|
|
texinfo \
|
|
libgmime-2.6-dev \
|
|
libxapian-dev \
|
|
guile-2.0-dev \
|
|
html2text \
|
|
xdg-utils \
|
|
libwebkit-dev
|
|
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 && \
|
|
./configure >/dev/null 2>&1 && \
|
|
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"
|
|
;;
|
|
esac
|
|
|
|
_recipe nvm
|
|
_npm imapnotify
|