# MotifPeeker uses memes which relies on a local install of the MEME suite.
#
# Official instructions on how to install the MEME suite can be found here:
# https://meme-suite.org/meme/doc/install.html
#
# NOTE: MEME Suite on Windows is only supported using Windows Subsystem for
# Linux (WSL).
#
# Summary of installation commands are as follows:
MEME_VERSION=5.5.5  # or the latest version

wget https://meme-suite.org/meme/meme-software/$MEME_VERSION/meme-$MEME_VERSION.tar.gz
tar zxf meme-$MEME_VERSION.tar.gz
cd meme-$MEME_VERSION
./configure --prefix=$HOME/meme --with-url=http://meme-suite.org/ \
--enable-build-libxml2 --enable-build-libxslt
make
make install

# Add to PATH
# (For BASH shell)
echo 'export PATH=$PATH:$HOME/meme/bin:$HOME/meme/libexec/meme-$MEME_VERSION' >> ~/.bashrc
echo 'export MEME_BIN=$HOME/meme/bin' >> ~/.bashrc
source ~/.bashrc


# Install Perl dependency
# You may need to install additional Perl dependencies other than the one below.
# (https://meme-suite.org/meme/doc/install.html#prereq_perl)
#
# May require the user to answer prompts
cpan install XML::Parser
