if [ -z ${CONDA_BUILD+x} ]; then
    source /opt/conda/conda-bld/dfast_1569917414933/work/build_env_setup.sh
fi
#!/bin/sh

APPROOT=$PREFIX/opt/$PKG_NAME-$PKG_VERSION

rm bin/*/aragorn
rm bin/*/barrnap
rm -r bin/Darwin/barrnap-0.8
rm bin/*/blastdbcmd
rm bin/*/blastp
rm bin/*/ghost*
rm bin/*/hmm*
rm bin/*/makeblastdb
rm bin/*/mga
rm bin/*/rpsblast
if [ "$(uname)" == "Darwin" ]; then
    rm -rf bin/Linux
    LD_LIBRARY_PATH=$APPROOT/bin/Darwin/lib
else
    rm -rf bin/Darwin
fi


mkdir -p $APPROOT
mkdir -p ${PREFIX}/bin

cp -r ./* $APPROOT

ln -s ${APPROOT}/dfast ${PREFIX}/bin/dfast
ln -s ${APPROOT}/scripts/file_downloader.py ${PREFIX}/bin/dfast_file_downloader.py
ln -s ${APPROOT}/scripts/file_downloader.py ${PREFIX}/bin/file_downloader.py
