void-packages/srcpkgs/librsvg/template

58 lines
1.5 KiB
Bash

# Template build file for 'librsvg'.
pkgname=librsvg
version=2.40.20
revision=3
build_style=gnu-configure
configure_args="--disable-static $(vopt_enable gir introspection) $(vopt_enable vala)"
hostmakedepends="automake libtool pkg-config intltool python glib-devel
gdk-pixbuf-devel gobject-introspection $(vopt_if vala vala-devel)"
makedepends="libcroco-devel pango-devel gdk-pixbuf-devel"
triggers="gtk-pixbuf-loaders"
short_desc="SVG library for GNOME"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://wiki.gnome.org/Projects/LibRsvg"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=cff4dd3c3b78bfe99d8fcfad3b8ba1eee3289a0823c0e118d78106be6b84c92b
# Package build options
build_options="gir vala"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="vala gir"
fi
pre_configure() {
autoreconf -fi
}
pre_check() {
# This test is know to fail
rm -f tests/fixtures/reftests/bugs/777834-*
}
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_options_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
}
}