Otok public index

apotocki/expat

apotocki/expat 2.10.0 (r1, linux)

Library
expat
Variant
linux, target linux
Channel
stable
Published
2026-11-14
Recipe source
https://github.com/otok-dev/recipes
1ea16409510454b8ee22a4a83ff304e3e03808c4 in recipes/expat/2.10/linux/
Recipe SHA-256
35aef5322443cbe8b93a73d78d0286cf92af46f98990b40aaea17583ef58f972

Recipe files changed

Inputs

source.sha256c624ba2998fc65df1163a49641ff3f9ab73138b11641d92c86bee0fb01b1bc7f
source.urlhttps://github.com/libexpat/libexpat/releases/download/R_2_10_0/expat-2.10.0.tar.xz

Platforms

linux

Toolchains

Recipe files

build.lua 603 bytes · raw
-- Expat's CMake project, the library only (no xmlwf, examples or tests). What it installs: libexpat.a, or libexpat.so with its links.
function build(slice, options, deps)
    local static = slice.linkage == "static"
    otok.cmake{ defines = {
        EXPAT_SHARED_LIBS = not static, EXPAT_BUILD_TOOLS = false, EXPAT_BUILD_EXAMPLES = false, EXPAT_BUILD_TESTS = false,
        EXPAT_BUILD_DOCS = false, EXPAT_BUILD_FUZZERS = false,
    } }
    local p = slice.prefix
    return { libraries = { expat = otok.glob(static and "lib/libexpat.a" or "lib/libexpat.so", p)[1] }, headers = p .. "/include" }
end
recipe.toml 1000 bytes · raw
# The otok recipe of Expat (https://github.com/apotocki/otok): libexpat for Linux, from the release archive, with Expat's CMake, the
# library only (no xmlwf, examples or tests); static or dynamic.
[recipe]
api = 1
library = "expat"
name = "expat"
version = "2.10.0"
revision = 1
license = "MIT"
license-files = ["COPYING"]
homepage = "https://libexpat.github.io"
documentation = "https://libexpat.github.io/doc/"
description = "Expat, a stream-oriented XML parser library written in C."
keywords = ["xml", "parser"]
linkage = ["static", "dynamic"]

[source]
url = "https://github.com/libexpat/libexpat/releases/download/R_2_10_0/expat-2.10.0.tar.xz"
sha256 = "c624ba2998fc65df1163a49641ff3f9ab73138b11641d92c86bee0fb01b1bc7f"

[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 = "Expat"
libraries = ["expat"]