apotocki/zstd 1.5.7 (r1, linux)
- Library
- zstd
- Variant
- linux, target linux
- Channel
- stable
- Published
- 2026-11-14
- Recipe source
- https://github.com/otok-dev/recipes
1ea16409510454b8ee22a4a83ff304e3e03808c4inrecipes/zstd/1.5/linux/ - Recipe SHA-256
1bf4d6e587dc55e6e7dc4c76e3e850a6cb4825b7da1f7e2dded6c6cbb97e5dd5
Recipe files changed
Inputs
| source.sha256 | eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3 |
|---|---|
| source.url | https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.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
-- The CMake project in build/cmake, the library only (no programs, tests or contrib). What it installs: libzstd.a, or libzstd.so
-- with its links.
function build(slice, options, deps)
local static = slice.linkage == "static"
otok.cmake{
source = slice.source .. "/build/cmake",
defines = { ZSTD_BUILD_STATIC = static, ZSTD_BUILD_SHARED = not static, ZSTD_BUILD_PROGRAMS = false,
ZSTD_BUILD_TESTS = false, ZSTD_BUILD_CONTRIB = false, ZSTD_FRAMEWORK = false },
}
local p = slice.prefix
return { libraries = { zstd = otok.glob(static and "lib/libzstd.a" or "lib/libzstd.so", p)[1] }, headers = p .. "/include" }
end
recipe.toml
# The otok recipe of Zstandard (https://github.com/apotocki/otok): libzstd for Linux, from the release archive, with the
# CMake project in build/cmake, the library only; static or dynamic.
[recipe]
api = 1
library = "zstd"
name = "zstd"
version = "1.5.7"
revision = 1
license = "BSD-3-Clause OR GPL-2.0-only"
license-files = ["LICENSE"]
homepage = "https://facebook.github.io/zstd/"
documentation = "https://facebook.github.io/zstd/zstd_manual.html"
description = "Zstandard, a fast lossless compression algorithm."
keywords = ["compression", "zstd"]
linkage = ["static", "dynamic"]
[source]
url = "https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz"
sha256 = "eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3"
[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 = "Zstd"
libraries = ["zstd"]