#!/bin/bash

git clone --branch v3.3.0 https://github.com/soedinglab/hh-suite.git /tmp/hh-suite
&& mkdir /tmp/hh-suite/build
&& pushd /tmp/hh-suite/build
&& cmake -DCMAKE_INSTALL_PREFIX=/opt/hhsuite ..
&& make -j 4 && make install
&& ln -s /opt/hhsuite/bin/* /usr/bin
&& popd
&& rm -rf /tmp/hh-suite
