void-packages/srcpkgs/libgexiv2/template

38 lines
1.2 KiB
Bash

# Template file for 'libgexiv2'
pkgname=libgexiv2
version=0.10.9
revision=1
wrksrc="${pkgname/lib/}-${version}"
build_style=meson
configure_args="-Ddisable-introspection=$(vopt_if gir false true)
-Ddisable-vala=$(vopt_if vala false true) -Denable-gtk-doc=false"
hostmakedepends="pkg-config glib-devel $(vopt_if gir 'gobject-introspection')"
makedepends="libglib-devel exiv2-devel $(vopt_if gir 'vala-devel')"
short_desc="GObject-based wrapper around the Exiv2 library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Projects/gexiv2"
distfiles="${GNOME_SITE}/gexiv2/${version%.*}/${pkgname/lib/}-${version}.tar.xz"
checksum=8806234aa6fd1c345d46bf07a14e82771415071ca5ff63615b1ea62bd2fec0ed
build_options="gir vala"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir vala"
fi
libgexiv2-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
if [ "$build_option_gir" ]; then
vmove "usr/share/gir-*"
fi
}
}