1 # Template file for 'librsvg'
6 build_helper="gir rust"
7 hostmakedepends="cargo cargo-c pkg-config glib-devel gdk-pixbuf-devel
8 gi-docgen python3-docutils vala"
9 makedepends="cairo-devel freetype-devel gdk-pixbuf-devel libcroco-devel
10 libglib-devel libxml2-devel pango-devel vala-devel libdav1d-devel rust-std"
11 short_desc="SVG library for GNOME"
12 maintainer="Érico Nogueira <ericonr@disroot.org>"
13 license="LGPL-2.1-or-later"
14 homepage="https://gitlab.gnome.org/GNOME/librsvg"
15 changelog="https://gitlab.gnome.org/GNOME/librsvg/-/raw/main/NEWS"
16 distfiles="${GNOME_SITE}/librsvg/${version%.*}/librsvg-${version}.tar.xz"
17 checksum=6116267c7ddabfd4daaf1c341326da0a773139a7223e885ae40ee09bd6986ef6
19 # reference files are for specific pango and harfbuzz versions
20 # the test suite isn't designed to be run by distros
24 if [ "$CROSS_BUILD" ]; then
25 vsed -i meson.build -e "s/not meson.is_cross_build() and //"
29 if [ "$CROSS_BUILD" ]; then
30 XBPS_CROSS_RUSTFLAGS+=" -L${XBPS_BUILDDIR}/${pkgname}-${version}/build/rsvg"
31 configure_args+=" -Dtriplet=${XBPS_CROSS_RUST_TARGET}"
34 librsvg-devel_package() {
35 depends="gdk-pixbuf-devel cairo-devel libcroco-devel libdav1d-devel
36 ${sourcepkg}>=${version}_${revision}"
37 short_desc+=" - development files"
40 vmove usr/lib/pkgconfig
42 vmove usr/share/gir-1.0
45 vmkdir usr/share/gtk-doc/html
46 mv ${DESTDIR}/usr/share/doc/Rsvg-2.0 ${PKGDESTDIR}/usr/share/gtk-doc/html/
50 librsvg-utils_package() {
51 short_desc+=" - utilities"
53 vmove usr/bin/rsvg-convert
54 vmove usr/share/man/man1/rsvg-convert.1