mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 06:14:18 +08:00
Add ncdu recipe
This commit is contained in:
parent
9c7a0fdf3e
commit
0cdf0867d9
33
recipes/ncdu/recipe.sh
Normal file
33
recipes/ncdu/recipe.sh
Normal file
@ -0,0 +1,33 @@
|
||||
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_update {
|
||||
echo "skipping update"
|
||||
skip=1
|
||||
}
|
||||
function recipe_build {
|
||||
sysroot="$PWD/../sysroot"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export CPPFLAGS="-I$sysroot/include -I$sysroot/include/ncurses"
|
||||
./configure \
|
||||
--build x86_64-pc-linux-gnu \
|
||||
--host "$HOST"
|
||||
make
|
||||
skip=1
|
||||
}
|
||||
function recipe_test {
|
||||
echo "skipping test"
|
||||
skip=1
|
||||
}
|
||||
function recipe_stage {
|
||||
dest="$(realpath "$1")"
|
||||
echo "$dest"
|
||||
make DESTDIR="$dest" install
|
||||
skip=1
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user