mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 21:34:18 +08:00
Use a recipe.toml file for ncdu
This gives a linker error about multiple definitions both before and after.
This commit is contained in:
parent
d99aef95ce
commit
56a897e40d
@ -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
|
||||
}
|
||||
22
recipes/tui/ncdu/recipe.toml
Normal file
22
recipes/tui/ncdu/recipe.toml
Normal 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
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user