Merge pull request #145 from jD91mZM2/ncdu

Add ncdu recipe
This commit is contained in:
Jeremy Soller 2018-04-23 09:13:34 -06:00 committed by GitHub
commit 854b537dbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

43
recipes/ncdu/recipe.sh Normal file
View File

@ -0,0 +1,43 @@
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_clean {
make clean
skip=1
}
function recipe_stage {
dest="$(realpath "$1")"
make DESTDIR="$dest" install
cd "$dest/usr/local/bin/"
find . -type f -exec install -D "{}" "$dest/usr/bin/{}" \;
cd -
cd "$dest/usr/local/share/"
find . -type f -exec install -D "{}" "$dest/share/{}" \;
cd -
rm -r "$dest/usr/local/"
skip=1
}