#TODO compiled but not tested
[source]
git = "https://github.com/zlib-ng/zlib-ng"
rev = "2bc66887ddc0c50776811a27be68e34430d665e1"
[build]
template = "custom"
script = """
    export LDFLAGS="--static"
    # See https://stackoverflow.com/questions/21396988/zlib-build-not-configuring-properly-with-cross-compiler-ignores-ar.
    CHOST="${TARGET}" "${COOKBOOK_CONFIGURE}" \
        --prefix="" \
        --static
    "${COOKBOOK_MAKE}" -j "$(nproc)"
    "${COOKBOOK_MAKE}" install DESTDIR="${COOKBOOK_STAGE}"
"""
