#!/usr/bin/env bash

cd source
./prepare
./configure --prefix=$PREFIX
make
make check
make install

#!/usr/bin/env bash

cd $SRC_DIR
./prepare
./configure --prefix=$PREFIX
make
make check
make install

Use env var for source dir.
Use env var for source dir.
