name=mlibc-headers
revision=1
from_source=mlibc
imagedeps="meson ninja"
hostdeps="pkg-config"

build() {
    meson_configure \
        -Dheaders_only=true \
        -Ddisable_crypt_option=true \
        -Ddisable_iconv_option=true \
        -Ddisable_intl_option=true

    ninja -j${parallelism}
}

package() {
    DESTDIR="${dest_dir}" ninja install

    # Required for V
    cp ${source_dir}/options/linux/include/sys/ptrace.h "${dest_dir}${prefix}"/include/sys/
}
