#TODO: version 2.59 and newer require cargo-c
[source]
tar = "https://download.gnome.org/sources/librsvg/2.58/librsvg-2.58.5.tar.xz"
blake3 = "15ccac6309992ced51128825e9c3ebeb041705aeb8371507ffc4cebb6a1e4ce5"
script = """
autotools_recursive_regenerate
"""

[build]
dependencies = [
    "cairo",
    "freetype2",
    "gdk-pixbuf",
    "glib",
    "harfbuzz",
    "libffi",
    "libxml2",
    "pango",
]
template = "custom"
script = """
DYNAMIC_INIT
export GDK_PIXBUF_QUERYLOADERS="/usr/lib/$(cc -dumpmachine)/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders"
cookbook_configure --disable-introspection
mv ${COOKBOOK_STAGE}/${COOKBOOK_SYSROOT}/usr/lib/gdk-pixbuf-2.0 ${COOKBOOK_STAGE}/usr/lib/gdk-pixbuf-2.0
"""
