Add zlib recipe.toml

This commit is contained in:
Jeremy Soller 2020-05-20 16:07:55 -06:00
parent 204e968016
commit ae4b56fca6
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

14
recipes/zlib/recipe.toml Normal file
View File

@ -0,0 +1,14 @@
[source]
tar = "http://zlib.net/zlib-1.2.11.tar.gz"
[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_SOURCE}/configure" \
--prefix="" \
--static
make -j "$(nproc)"
make install DESTDIR="${COOKBOOK_STAGE}"
"""