Use a recipe.toml file for ncdu

This gives a linker error about multiple definitions both before and
after.
This commit is contained in:
bjorn3 2025-06-28 21:59:04 +02:00
parent d99aef95ce
commit 56a897e40d
2 changed files with 22 additions and 29 deletions

View File

@ -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
}

View File

@ -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
"""