Expand description
Thirdparty library download and build helpers.
Library source URLs are defined as constants so Renovate can track them.
§Download
download_libraries fetches each library’s source. Most libraries are
downloaded as tarballs and extracted with the top-level directory stripped.
Libraries that use git submodules (currently freetype2) are cloned with
--recurse-submodules so submodule contents are always present. If the
cloned source ships an autogen.sh script, it is run immediately after
cloning to generate the configure script that build-kobo.sh expects.
§Build
build_libraries iterates over the packages in dependency order, applies
kobo.patch if present, then invokes each library’s own build-kobo.sh
script.
Enums§
- Library
Source - Describes how a thirdparty library’s source is obtained.
Constants§
- BUILT_
MARKER - Sentinel file written inside a library directory after a successful build.
- BZIP2_
URL - DJVULIBRE_
VERSION - FREETYP
E2_ VERSION - FreeType version, cloned from
freetype/freetypeat tagVER-X-Y-Z. - GUMBO_
VERSION - Gumbo version, derived from the archive URL.
- HARFBUZZ_
VERSION - HarfBuzz version, derived from the archive URL.
- JBIG2DEC_
URL - LIBJPEG_
VERSION - IJG libjpeg version tracked via the libjpeg-turbo
jpeg-<version>tag mirror. - LIBPNG_
VERSION - LIBRARY_
NAMES 🔒 - All libraries in dependency order for building.
- MUPDF_
URL - OPENJPEG_
VERSION - OpenJPEG version, derived from the archive URL.
- SONAMES
- Base names of all thirdparty shared libraries.
- SOURCE_
READY_ MARKER - Sentinel file written inside a library directory after source extraction.
- ZLIB_
VERSION - Version strings for thirdparty libraries tracked by Renovate.
Functions§
- build_
libraries - Builds the given libraries for the Kobo ARM target.
- clean_
untracked 🔒 - Removes untracked files from a directory using
git ls-files, falling back to removing and recreating the directory when git is unavailable. - download_
libraries - Downloads source for the given libraries into
thirdparty/. - git_
clone_ 🔒tag - Clones
repoattagintodest, recursing into submodules. - is_
built 🔒 - Returns
trueif the library indirwas already built and the sentinel file is present. - is_
source_ 🔒ready - Returns
trueifdiralready has a completed source download marker. - library_
source - Returns the source descriptor for a named library.
- soname
- Returns the SONAME of
libinlibs_dir. - write_
marker 🔒 - Writes a marker file inside
dirto persist task completion state.