void-packages/srcpkgs/libgxps/template
2019-01-05 19:42:09 +01:00

36 lines
1.1 KiB
Bash

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