43 lines
1.3 KiB
Text
43 lines
1.3 KiB
Text
# Template file for 'libosinfo'
|
|
pkgname=libosinfo
|
|
version=0.2.8
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --disable-tests"
|
|
hostmakedepends="pkg-config intltool"
|
|
makedepends="libglib-devel libsoup-gnome-devel libxml2-devel libxslt-devel vala-devel"
|
|
short_desc="GObject based library API for managing info about operating systems"
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
|
homepage="https://fedorahosted.org/libosinfo/"
|
|
license="GPL-2, LGPL-2.1"
|
|
distfiles="https://fedorahosted.org/releases/l/i/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=50cbfcff4548f37b5b7d3328cbc6e96fe6c2a48696e31eec0c819d161e38c643
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
desc_option_gir="Enable support for building gobject introspection data"
|
|
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
configure_args+=" --enable-introspection"
|
|
makedepends+=" gobject-introspection"
|
|
else
|
|
configure_args+=" --disable-introspection"
|
|
fi
|
|
|
|
libosinfo-devel_package() {
|
|
depends="libglib-devel ${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|