diff --git a/recipes/tui/ncdu/recipe.sh b/recipes/tui/ncdu/recipe.sh deleted file mode 100644 index 4906dc59c..000000000 --- a/recipes/tui/ncdu/recipe.sh +++ /dev/null @@ -1,29 +0,0 @@ -VERSION=1.13 -TAR=https://dev.yorhel.nl/download/ncdu-$VERSION.tar.gz -BUILD_DEPENDS=(ncurses) -DEPENDS=(terminfo) - -function recipe_version { - echo "$VERSION" - skip=1 -} -function recipe_build { - sysroot="$PWD/../sysroot" - export CPPFLAGS="-I$sysroot/include -I$sysroot/include/ncurses" - export LDFLAGS="-L$sysroot/lib -static" - ./configure \ - --build=${BUILD} \ - --host="$HOST" \ - --prefix=/ - "$REDOX_MAKE" -j"$($NPROC)" - skip=1 -} -function recipe_clean { - "$REDOX_MAKE" clean - skip=1 -} -function recipe_stage { - dest="$(realpath "$1")" - "$REDOX_MAKE" DESTDIR="$dest" install - skip=1 -} diff --git a/recipes/tui/ncdu/recipe.toml b/recipes/tui/ncdu/recipe.toml new file mode 100644 index 000000000..17daab77a --- /dev/null +++ b/recipes/tui/ncdu/recipe.toml @@ -0,0 +1,22 @@ +[source] +tar = "https://dev.yorhel.nl/download/ncdu-1.13.tar.gz" +blake3 = "f6d771e78c87202a051e3357820be3c63ea895ff4f07edf14c6f21fb18afceed" + +[build] +template = "custom" +dependencies = [ + "ncurses", + "terminfo" +] +script = """ +rsync -av --delete --exclude='.git' "${COOKBOOK_SOURCE}/" ./ +export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include -I${COOKBOOK_SYSROOT}/include/ncurses" +export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib -static" +./configure \ + --build=${BUILD} \ + --host="${TARGET}" \ + --prefix=/ +"${COOKBOOK_MAKE}" -j"$(${NPROC})" + +"${COOKBOOK_MAKE}" DESTDIR="${COOKBOOK_STAGE}" install +"""