The librsvg package contains a library and tools used to manipulate, convert and view Scalable Vector Graphic (SVG) images.
This package is known to build and work properly using an LFS 13.1 platform.
Download (HTTP): https://download.gnome.org/sources/librsvg/2.62/librsvg-2.62.3.tar.xz
Download MD5 sum: bf6d56ffe4cfa5426cf1a67bcabdf5ce
Download size: 6.5 MB
Estimated disk space required: 2.0 GB (with tests; 18 MB installed)
Estimated build time: 0.6 SBU (add 0.3 SBU for tests; both using parallelism=4)
Cairo-1.18.4, cargo-c-0.10.24, and Pango-1.58.2
An Internet connection is needed for building this package. The system certificate store may need to be set up with make-ca-1.16.1 before building this package.
gdk-pixbuf-2.44.7, GLib-2.88.3 (with GObject Introspection), and Vala-0.56.19
dav1d-1.5.4 (to support embedded AVIF in SVG), docutils-0.23 (for man pages), and Gi-DocGen-2026.1 (for documentation)
First, fix the installation path of the API documentation:
sed -e "/OUTDIR/s|,| / 'librsvg-2.62.3', '--no-namespace-dir',|" \
-e '/output/s|Rsvg-2.0|librsvg-2.62.3|' \
-i doc/meson.build
Install librsvg by running the following commands:
mkdir build && cd build && meson setup --prefix=/usr --buildtype=release .. && ninja
To test the results, issue:
meson test -v
One test named text-text-03-b is known
to fail with pango 1.58.1 or newer.
Now, as the root user:
ninja install