#!/bin/sh
name="find"
short_desc="find(1) command"
desc="find(1) command from toybox"
category="sysutils"
version="0.8.10"
maintainer="ffqq@danwin1210.de"
www="https://landley.net/toybox/"
master_site="https://landley.net/toybox/downloads"
source_name="toybox-$version.tar.gz"
license_logic="single" # accepted values: single, and, or
licenses=("GPLv2")

build_dependencies=("devel/gmake" "lang/gcc")
run_dependencies=("system/glibc")

build_process() {
    cd toybox-$version
    make defconfig
    make HOSTCC="$CC" -j$(nproc) find
    mkdir -pv "$TAMANDUA_STAGE_DIR/usr/bin"
    mv -v ./find "$TAMANDUA_STAGE_DIR/usr/bin"
}