void-packages/srcpkgs/libosinfo/template

48 lines
1.4 KiB
Bash

# Template file for 'libosinfo'
pkgname=libosinfo
version=1.11.0
revision=1
build_style=meson
build_helper="gir"
configure_args="$(vopt_feature gir enable-introspection)
$(vopt_feature vala enable-vala) $(vopt_bool gtk_doc enable-gtk-doc)"
hostmakedepends="glib-devel intltool pkg-config wget hwids
$(vopt_if gtk_doc gtk-doc)
$(vopt_if vala vala)"
makedepends="libxslt-devel libglib-devel libsoup3-devel"
depends="osinfo-db hwids"
short_desc="GObject based library API for managing info about operating systems"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://libosinfo.org/"
changelog="https://gitlab.com/libosinfo/libosinfo/raw/main/NEWS"
distfiles="https://gitlab.com/libosinfo/libosinfo/-/archive/v${version}/libosinfo-v${version}.tar.gz"
checksum=927826e666f498cef106ef1bf22af4cc0cd56749f246ab15acdc1be05695a6eb
build_options="gtk_doc gir vala"
desc_option_gtk_doc="Build GTK API docs"
build_options_default="gir vala"
if [ -z "$CROSS_BUILD" ] ; then
build_options_default+=" gtk_doc"
fi
libosinfo-devel_package() {
depends="libglib-devel ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/lib/*.so"
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_gtk_doc" ]; then
vmove usr/share/gtk-doc
fi
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}