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 12.4 platform.
Download (HTTP): https://download.gnome.org/sources/librsvg/2.61/librsvg-2.61.0.tar.xz
Download MD5 sum: 7ed4ffdee87e0d7f356fedfea77744ca
Download size: 6.4 MB
Estimated disk space required: 1.1 GB (17 MB installed; add 385 MB for tests)
Estimated build time: 0.7 SBU (add 0.3 SBU for tests; both using parallelism=4)
Cairo-1.18.4, cargo-c-0.10.15, gdk-pixbuf-2.42.12, and Pango-1.56.4
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.
GLib-2.84.4 (with GObject Introspection) and Vala-0.56.18
docutils-0.21.2 (for man pages), Gi-DocGen-2025.4 (for documentation), and Xorg Fonts (for tests)
First, fix the installation path of the API documentation:
sed -e "/OUTDIR/s|,| / 'librsvg-2.61.0', '--no-namespace-dir',|" \ -e '/output/s|Rsvg-2.0|librsvg-2.61.0|' \ -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:
ninja test
One test, Rust tests (rsvg), is known to fail.
Now, as the root
user:
ninja install