void-packages/srcpkgs/libgxps/template

37 lines
1.1 KiB
Bash

# Template file for 'libgxps'
pkgname=libgxps
version=0.3.0
revision=1
build_style=meson
configure_args="-Denable-test=false -Ddisable-introspection=$(vopt_if gir false true)"
hostmakedepends="pkg-config $(vopt_if gir gobject-introspection)"
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="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/libgxps"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=412b1343bd31fee41f7204c47514d34c563ae34dafa4cc710897366bd6cd0fae
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
libgxps-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
}
}