36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'libosinfo'
|
|
pkgname=libosinfo
|
|
version=0.3.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --disable-tests $(vopt_enable gir introspection)"
|
|
hostmakedepends="pkg-config intltool glib-devel wget"
|
|
makedepends="libglib-devel libsoup-gnome-devel libxml2-devel libxslt-devel vala-devel $(vopt_if gir gobject-introspection)"
|
|
short_desc="GObject based library API for managing info about operating systems"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="https://fedorahosted.org/libosinfo/"
|
|
license="GPL-2, LGPL-2.1"
|
|
distfiles="https://fedorahosted.org/releases/l/i/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=50b272943d68b77d5259f72be860acfd048126bc27e7aa9c2f9c77a7eacf3894
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
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_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|