#!/bin/bash
set -eu -o pipefail

outdir=${PREFIX}/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM
echo $outdir
mkdir -p $outdir
mkdir -p ${PREFIX}/bin
cp -R $PKG_NAME$PKG_VERSION/* $outdir/
cp $RECIPE_DIR/hops.py $outdir/hops
cp $RECIPE_DIR/MaltExtract.py $outdir/MaltExtract
ls -l $RECIPE_DIR
ln -s $outdir/hops ${PREFIX}/bin
ln -s $outdir/MaltExtract ${PREFIX}/bin
ls -l $outdir
mv $outdir/postprocessing.AMPS.r ${PREFIX}/bin/
chmod 0755 ${PREFIX}/bin/hops
chmod 0755 ${PREFIX}/bin/MaltExtract
chmod 0755 ${PREFIX}/bin/postprocessing.AMPS.r

