apotocki/lzma
liblzma, the LZMA and XZ compression library of XZ Utils.
- Library
- lzma
- Newest
- 5.8.4 (r1, android)
- Targets
- android, apple, linux, windows
- License
- 0BSD
- Homepage
- https://tukaani.org/xz/
- Keywords
- compression, lzma, xz
Use it
In otok.toml:
[deps.lzma]
recipe = "apotocki/lzma"
version = "~> 5.8.4"
Versions
| Version | Target | Channel | Published | Status |
|---|---|---|---|---|
| 5.8.4 (r1, android) | android | stable | 2026-11-07 | |
| 5.8.4 (r1, apple) | apple | stable | 2026-11-07 | |
| 5.8.4 (r1, linux) | linux | stable | 2026-11-07 | |
| 5.8.4 (r1, windows) | windows | stable | 2026-11-07 |
5.8.4 (r1, android)
Platforms
android
Toolchains
cmake { default-recipe = "apotocki/cmake", version = ">= 3.20" }ninja { default-recipe = "apotocki/ninja", version = ">= 1.10" }
Recipe files
build.lua
-- 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
# The otok recipe of liblzma from XZ Utils (https://github.com/apotocki/otok): the library alone for Android, 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 = ["android"]
build-on = ["*/ndk"]
[toolchains]
cmake = { version = ">= 3.20", default-recipe = "apotocki/cmake" }
ninja = { version = ">= 1.10", default-recipe = "apotocki/ninja" }
[[product]]
name = "LZMA"
libraries = ["lzma"]