apotocki/zlib 1.3.2 (r1, linux)
- Library
- zlib
- Variant
- linux, target linux
- Channel
- stable
- Published
- 2026-11-07
- Recipe source
- https://github.com/otok-dev/recipes
32756a87cf5bd189ca4c9825159bf0713ea8cf5einrecipes/zlib/1.3/linux/ - Recipe SHA-256
24db1933a4ed6edd17dd9c27e9f334c10ff3e5db600fd4223ab2cfd62c5b9a26
Recipe files changed
Inputs
| source.sha256 | bb329a0a2cd0274d05519d61c667c062e06990d72e125ee2dfa8de64f0119d16 |
|---|---|
| source.url | https://github.com/madler/zlib/releases/download/v1.3.2/zlib-1.3.2.tar.gz |
Platforms
linux
Toolchains
cmake { default-recipe = "apotocki/cmake", version = ">= 3.20" }ninja { default-recipe = "apotocki/ninja", version = ">= 1.10" }
Recipe files
build.lua
-- zlib's CMake project, the library only. What it installs: libz.a, or libz.so with its links.
function build(slice, options, deps)
local static = slice.linkage == "static"
otok.cmake{ defines = { ZLIB_BUILD_SHARED = not static, ZLIB_BUILD_STATIC = static, ZLIB_BUILD_TESTING = false } }
local p = slice.prefix
local lib = otok.glob(static and "lib/libz.a" or "lib/libz.so", p)[1]
return { libraries = { z = lib }, headers = p .. "/include" }
end
recipe.toml
# The otok recipe of zlib (https://github.com/apotocki/otok): libz for Linux, from the release archive; static or
# dynamic.
[recipe]
api = 1
library = "zlib"
name = "zlib"
version = "1.3.2"
revision = 1
license = "Zlib"
license-files = ["LICENSE"]
homepage = "https://zlib.net"
description = "zlib, the general-purpose compression library."
keywords = ["compression", "deflate", "zlib"]
linkage = ["static", "dynamic"]
[source]
url = "https://github.com/madler/zlib/releases/download/v1.3.2/zlib-1.3.2.tar.gz"
sha256 = "bb329a0a2cd0274d05519d61c667c062e06990d72e125ee2dfa8de64f0119d16"
[platforms]
supported = ["linux"]
build-on = ["linux/gcc", "linux/clang"]
[toolchains]
cmake = { version = ">= 3.20", default-recipe = "apotocki/cmake" }
ninja = { version = ">= 1.10", default-recipe = "apotocki/ninja" }
[[product]]
name = "ZLIB"
libraries = ["z"]