void-packages/srcpkgs/libgexiv2/template

42 lines
1.2 KiB
Bash

# Template file for 'libgexiv2'
pkgname=libgexiv2
version=0.12.0
revision=1
wrksrc="${pkgname/lib/}-${version}"
build_style=meson
build_helper="gir"
configure_args="-Dintrospection=$(vopt_if gir true false)
-Dvapi=$(vopt_if vala true false)"
hostmakedepends="pkg-config glib-devel $(vopt_if vala 'vala')"
makedepends="libglib-devel exiv2-devel"
short_desc="GObject-based wrapper around the Exiv2 library"
maintainer="Rasmus Thomsen <oss@cogitri.dev>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Projects/gexiv2"
distfiles="${GNOME_SITE}/gexiv2/${version%.*}/${pkgname/lib/}-${version}.tar.xz"
checksum=58f539b0386f36300b76f3afea3a508de4914b27e78f58ee4d142486a42f926a
build_options="gir vala"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
*-musl) ;;
*) build_options_default+=" gir vala" ;;
esac
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
}
}