Otok public index

apotocki/lzma

apotocki/lzma 5.8.4 (r1, linux)

Library
lzma
Variant
linux, target linux
Channel
stable
Published
2026-11-07
Recipe source
https://github.com/otok-dev/recipes
32756a87cf5bd189ca4c9825159bf0713ea8cf5e in recipes/lzma/5.8/linux/
Recipe SHA-256
4581c8e118bb14433ed79e4033bd1222fb5a963967f8b861af5fa3b1191b620d

Recipe files changed

Inputs

source.commitd3e650e63c110e830fd5391e7f8b45df0b91d3da
source.githttps://github.com/tukaani-project/xz
source.tagv5.8.4

Platforms

linux

Toolchains

Recipe files

build.lua 612 bytes · raw
-- The CMake project without its command line tools, translations and documentation: liblzma.a, or
-- liblzma.so with its links.
function build(slice, options, deps)
    otok.cmake{
        defines = {
            XZ_NLS = false, XZ_DOC = false, XZ_SANDBOX = "no",
            XZ_TOOL_XZ = false, XZ_TOOL_XZDEC = false, XZ_TOOL_LZMADEC = false, XZ_TOOL_LZMAINFO = false, XZ_TOOL_SCRIPTS = false,
        },
    }
    local p = slice.prefix
    local lib = otok.glob(slice.linkage == "static" and "lib/liblzma.a" or "lib/liblzma.so", p)[1]
    return { libraries = { lzma = lib }, headers = p .. "/include" }
end
recipe.toml 938 bytes · raw
# The otok recipe of liblzma from XZ Utils (https://github.com/apotocki/otok): the library alone for Linux, from
# the release tag; static or dynamic.
[recipe]
api = 1
library = "lzma"
name = "lzma"
version = "5.8.4"
revision = 1
license = "0BSD"
# COPYING tells which license applies to which part; liblzma is 0BSD
license-files = ["COPYING", "COPYING.0BSD"]
homepage = "https://tukaani.org/xz/"
description = "liblzma, the LZMA and XZ compression library of XZ Utils."
keywords = ["compression", "lzma", "xz"]
linkage = ["static", "dynamic"]

[source]
git = "https://github.com/tukaani-project/xz"
commit = "d3e650e63c110e830fd5391e7f8b45df0b91d3da"
tag = "v5.8.4"

[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 = "LZMA"
libraries = ["lzma"]