void-packages/srcpkgs/libgxps/template
2019-08-19 10:27:57 +02:00

35 lines
1 KiB
Bash

# Template file for 'libgxps'
pkgname=libgxps
version=0.3.1
revision=3
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=1a939fc8fcea9471b7eca46b1ac90cff89a30d26f65c7c9a375a4bf91223fa94
# 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
}
}