Pkgfile located in the crux download
directory builds the librsvg C library
(librsvg-2.so.2).
Two series are published:
2.62.x (stable / final) and
2.63.x (development).
Full build notes are in the README; port files are
in the crux download directory.
Build
Place the public source tarball
librsvg-c-2.6x.x.tar.xz next to the
Pkgfile, or let pkgmk fetch it from the
source= URL. Then:
pkgmk -d
That writes librsvg#2.6x.x.pkg.tar.gz
(or the compression set in pkgmk.conf).
Install on a CRUX host with pkgadd.
After the first successful build,
pkgmk -uf updates the footprint.
Configure
--prefix=/usr --disable-introspection --disable-vala
PNG, JPEG, GIF, WebP, and AVIF support for SVG
<image> is auto (enabled when the library
is present). BMP is in-tree.
After install
The package does not ship loaders.cache
(gdk-pixbuf owns that path). On the CRUX host run:
gdk-pixbuf-query-loaders --update-cache
First install: pkgadd without -u.
Use -u only when upgrading.
Notes
- Required: cairo, gdk-pixbuf, glib, libxml2, pango, libpng, libjpeg, giflib, libwebp
- Optional (auto): libavif
- Packages Provide / Replace the matching
librsvg2-*names. - Source tarball
- Pkgfile file
- Independent C project. Not affiliated with GNOME.