49 lines
1.5 KiB
Bash
49 lines
1.5 KiB
Bash
# Template file for 'libosinfo'
|
|
pkgname=libosinfo
|
|
version=1.10.0
|
|
revision=2
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Denable-introspection=$(vopt_if gir enabled disabled)
|
|
-Denable-vala=$(vopt_if vala enabled disabled)
|
|
-Denable-gtk-doc=$(vopt_if gtk_doc true false)"
|
|
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=e709c5f7d006527caea9b128cdae0ee3404217f2edb9a673ad9574b5eec257fc
|
|
|
|
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
|
|
}
|
|
}
|