<commit_before>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
}<commit_msg>Change installation location<commit_after>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")"
    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
}
{'fraction_non_alphanumeric': 0.15550092194222495, 'fraction_numerical': 0.015980331899200985, 'mean_word_length': 2.8305882352941176, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5411652', 'n_tokens_mistral': 599, 'n_tokens_neox': 581, 'n_words': 115}