57 lines
1.7 KiB
Bash
57 lines
1.7 KiB
Bash
# Template file for 'librsvg'
|
|
pkgname=librsvg
|
|
version=2.59.1
|
|
revision=4
|
|
build_style=meson
|
|
build_helper="gir rust"
|
|
hostmakedepends="cargo cargo-c pkg-config glib-devel gdk-pixbuf-devel
|
|
gi-docgen python3-docutils vala"
|
|
makedepends="cairo-devel freetype-devel gdk-pixbuf-devel libcroco-devel
|
|
libglib-devel libxml2-devel pango-devel vala-devel libdav1d-devel rust-std"
|
|
short_desc="SVG library for GNOME"
|
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://gitlab.gnome.org/GNOME/librsvg"
|
|
changelog="https://gitlab.gnome.org/GNOME/librsvg/-/raw/main/NEWS"
|
|
distfiles="${GNOME_SITE}/librsvg/${version%.*}/librsvg-${version}.tar.xz"
|
|
checksum=6116267c7ddabfd4daaf1c341326da0a773139a7223e885ae40ee09bd6986ef6
|
|
|
|
# reference files are for specific pango and harfbuzz versions
|
|
# the test suite isn't designed to be run by distros
|
|
make_check=no
|
|
|
|
post_patch() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
vsed -i meson.build -e "s/not meson.is_cross_build() and //"
|
|
fi
|
|
}
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
XBPS_CROSS_RUSTFLAGS+=" -L${XBPS_BUILDDIR}/${pkgname}-${version}/build/rsvg"
|
|
configure_args+=" -Dtriplet=${XBPS_CROSS_RUST_TARGET}"
|
|
fi
|
|
|
|
librsvg-devel_package() {
|
|
depends="gdk-pixbuf-devel cairo-devel libcroco-devel libdav1d-devel pango-devel
|
|
${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
|
|
vmkdir usr/share/gtk-doc/html
|
|
mv ${DESTDIR}/usr/share/doc/Rsvg-2.0 ${PKGDESTDIR}/usr/share/gtk-doc/html/
|
|
}
|
|
}
|
|
|
|
librsvg-utils_package() {
|
|
short_desc+=" - utilities"
|
|
pkg_install() {
|
|
vmove usr/bin/rsvg-convert
|
|
vmove usr/share/man/man1/rsvg-convert.1
|
|
}
|
|
}
|