redox/recipes/cmatrix/recipe.sh
Paul 1750721923 Add recipe for cmatrix (#108)
* Add recipe for cmatrix

* Add recipe for terminfo

* Fix recipe for cmatrix
2017-11-21 20:50:30 -07:00

52 lines
1.0 KiB
Bash

GIT=https://github.com/abishekvashok/cmatrix
BUILD_DEPENDS=(ncurses)
DEPENDS=(terminfo)
export AR="${HOST}-ar"
export AS="${HOST}-as"
export CC="${HOST}-gcc"
export CXX="${HOST}-g++"
export LD="${HOST}-ld"
export NM="${HOST}-nm"
export OBJCOPY="${HOST}-objcopy"
export OBJDUMP="${HOST}-objdump"
export RANLIB="${HOST}-ranlib"
export READELF="${HOST}-readelf"
export STRIP="${HOST}-strip"
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="${PWD}/../sysroot"
export LDFLAGS="-L$sysroot/lib"
export CPPFLAGS="-I$sysroot/include"
./configure --host=${HOST} --prefix=/ --without-fonts
make
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
make clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
make DESTDIR="$dest" install
rm -rf $1/share/man
skip=1
}