40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Template file for 'libosinfo'
|
|
pkgname=libosinfo
|
|
version=1.6.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--disable-static $(vopt_enable gir introspection)"
|
|
hostmakedepends="glib-devel intltool pkg-config wget
|
|
$(vopt_if vala vala)"
|
|
makedepends="libxslt-devel libglib-devel libsoup-devel"
|
|
depends="osinfo-db"
|
|
checkdepends="libosinfo"
|
|
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/master/NEWS"
|
|
distfiles="https://releases.pagure.org/libosinfo/${pkgname}-${version}.tar.gz"
|
|
checksum=3c385c1cceb46301fdc79115e7b28e3df7aa26fafce0a787a60132a86a1990c7
|
|
|
|
# Package build options
|
|
build_options="gir vala"
|
|
build_options_default="gir vala"
|
|
|
|
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
|
|
vmove usr/share/gtk-doc
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|