# Template file for 'libgxps'
pkgname=libgxps
version=0.3.2
revision=1
build_style=meson
build_helper="gir"
configure_args="-Denable-test=false
 -Ddisable-introspection=$(vopt_if gir false true)"
hostmakedepends="pkg-config"
makedepends="cairo-devel libglib-devel libjpeg-turbo-devel libpng-devel
 tiff-devel lcms2-devel libarchive-devel freetype-devel"
short_desc="GObject base library for XPS documents"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/libgxps"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=6d27867256a35ccf9b69253eb2a88a32baca3b97d5f4ef7f82e3667fa435251c

# Package build options
build_options="gir"
build_options_default="gir"

libgxps-devel_package() {
	depends="cairo-devel libglib-devel libarchive-devel
	 ${sourcepkg}-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
		if [ "$build_option_gir" ]; then
			vmove usr/share/gir-1.0
		fi
	}
}
