harbor run -t openthoughts/tasktrove-exp-rpt-stack-bash-withtests-gpt5mini-v2-stack-bash-withtests-gpt4o-0270harbor download openthoughts/tasktrove-exp-rpt-stack-bash-withtests-gpt5mini-v2-stack-bash-withtests-gpt4o-0270Implement a minimal source “package” named jasper that can be configured, built, optionally checked, and installed by a standard configure/make/make install workflow. Place your package under /app/ so the test harness can find it.
Requirements
The generated Makefile (created by configure in the build directory) must provide at least these targets:
The build should reference source files from the parent directory (../src, ../include) because configure is run from a created build directory.
Deliverable location
Notes
The following test script will be used to verify your solution:
#!/bin/sh
set -ex
name="jasper"
version=$1
compiler=${COMPILER:-"gnu-7.3.0"}
set +x
source $MODULESHOME/init/sh
module load $(echo $compiler | sed 's/-/\//g')
module list
set -x
export F77=$FC
export FFLAGS="-fPIC"
export CFLAGS="-fPIC"
cd ${PKGDIR:-"../pkg"}
software=$name-$version
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
[[ -d build ]] && rm -rf build
mkdir -p build && cd build
prefix="${PREFIX:-"$HOME/opt"}/$compiler/$name/$version"
[[ -d $prefix ]] && ( echo "$prefix exists, ABORT!"; exit 1 )
../configure --prefix=$prefix
make -j${NTHREADS:-4}
[[ "$CHECK" = "YES" ]] && make check
make install
exit 0