redox/recipes/mdp/recipe.sh
2020-05-06 09:15:18 -06:00

38 lines
724 B
Bash

GIT=https://github.com/visit1985/mdp.git
BUILD_DEPENDS=(ncursesw)
DEPENDS="terminfo"
function recipe_version {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include -I$sysroot/include/ncursesw"
export LDFLAGS="-L$sysroot/lib"
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" PREFIX="" install
skip=1
}