rio: update to 0.2.2.
[void-pkg.git] / srcpkgs / librsvg / template
blob87f76e51b75de7c493e3c96260dd63fec74e1067
1 # Template file for 'librsvg'
2 pkgname=librsvg
3 version=2.59.1
4 revision=4
5 build_style=meson
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
21 make_check=no
23 post_patch() {
24         if [ "$CROSS_BUILD" ]; then
25                 vsed -i meson.build -e "s/not meson.is_cross_build() and //"
26         fi
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 pango-devel
36          ${sourcepkg}>=${version}_${revision}"
37         short_desc+=" - development files"
38         pkg_install() {
39                 vmove usr/include
40                 vmove usr/lib/pkgconfig
41                 vmove "usr/lib/*.so"
42                 vmove usr/share/gir-1.0
43                 vmove usr/share/vala
45                 vmkdir usr/share/gtk-doc/html
46                 mv ${DESTDIR}/usr/share/doc/Rsvg-2.0 ${PKGDESTDIR}/usr/share/gtk-doc/html/
47         }
50 librsvg-utils_package() {
51         short_desc+=" - utilities"
52         pkg_install() {
53                 vmove usr/bin/rsvg-convert
54                 vmove usr/share/man/man1/rsvg-convert.1
55         }