59 lines
1.7 KiB
Bash
59 lines
1.7 KiB
Bash
# Template file for 'librsvg'
|
|
pkgname=librsvg
|
|
version=2.44.13
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--disable-static --host=${XBPS_TARGET_TRIPLET}
|
|
$(vopt_enable gir introspection) $(vopt_enable vala)"
|
|
hostmakedepends="cargo pkg-config python glib-devel
|
|
gdk-pixbuf-devel $(vopt_if vala vala)"
|
|
makedepends="cairo-devel freetype-devel gdk-pixbuf-devel gtk+3-devel
|
|
libcroco-devel libglib-devel libxml2-devel pango-devel rust
|
|
$(vopt_if vala vala)"
|
|
short_desc="SVG library for GNOME"
|
|
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
|
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=d2d660bf0c6441d019ae7a7ba96b789facbfb14dc97818908ee03e15ba6bcb8f
|
|
|
|
# Package build options
|
|
build_options="gir vala"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
|
|
*-musl) ;;
|
|
*) build_options_default+=" gir vala" ;;
|
|
esac
|
|
|
|
do_check() {
|
|
# cargo refuses to test librsvg due to
|
|
# config.guess' checksum changing during
|
|
# do_configure
|
|
:
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|