47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
# Template file for 'librsvg'
|
|
pkgname=librsvg
|
|
# https://gitlab.gnome.org/GNOME/librsvg/-/issues/604
|
|
version=2.48.8
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--disable-static --enable-introspection --enable-vala"
|
|
hostmakedepends="cargo pkg-config python glib-devel gdk-pixbuf-devel vala"
|
|
makedepends="cairo-devel freetype-devel gdk-pixbuf-devel libcroco-devel
|
|
libglib-devel libxml2-devel pango-devel rust vala"
|
|
short_desc="SVG library for GNOME"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later, LGPL-2.0-or-later"
|
|
homepage="https://wiki.gnome.org/Projects/LibRsvg"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=f480a325bbdf26d1874eb6fb330ebc5920ba64e3e08de61931bb4506dfef2692
|
|
|
|
do_check() {
|
|
# reference files are for pango 1.44.x, we're on 1.42.x
|
|
:
|
|
}
|
|
|
|
librsvg-devel_package() {
|
|
depends="gdk-pixbuf-devel cairo-devel libcroco-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/gtk-doc
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|
|
librsvg-utils_package() {
|
|
short_desc+=" - utilities"
|
|
pkg_install() {
|
|
vmove usr/bin/rsvg-convert
|
|
vmove usr/share/man/man1/rsvg-convert.1
|
|
}
|
|
}
|