diff --git a/recipes/extrautils/recipe.sh b/recipes/extrautils/recipe.sh index de7b40e11a745eeebc7b4ea857a92d9f5feb16e8..f36cbfcab50c3c32ca5256a624a6c2228bd2f58f 100644 --- a/recipes/extrautils/recipe.sh +++ b/recipes/extrautils/recipe.sh @@ -1,5 +1,5 @@ GIT=https://github.com/redox-os/extrautils.git -BUILD_DEPENDS=xz +BUILD_DEPENDS=(xz) export PKG_CONFIG_ALLOW_CROSS=1 export PKG_CONFIG_PATH= export PKG_CONFIG_LIBDIR="$PWD/sysroot/lib/pkgconfig" diff --git a/recipes/newlibtest/recipe.sh b/recipes/newlibtest/recipe.sh new file mode 100644 index 0000000000000000000000000000000000000000..81024e5564f216c2aa0f741779ab211d6ce11c4a --- /dev/null +++ b/recipes/newlibtest/recipe.sh @@ -0,0 +1,39 @@ +GIT=https://github.com/redox-os/newlibtest.git +BUILD_DEPENDS=(newlib) + +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 CC="${HOST}-gcc" + export LD="${HOST}-ld" + export CFLAGS="-nostdinc -nostdlib -static $sysroot/lib/crt0.o" + export LIBS="-I $sysroot/include -L $sysroot/lib -lc -lm" + + make all + 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" prefix=/ install + skip=1 +}