2012-09-28 08:46:37 +00:00
|
|
|
# Template file for 'libosinfo'
|
|
|
|
pkgname=libosinfo
|
2013-05-14 07:30:24 +00:00
|
|
|
version=0.2.7
|
2014-02-20 17:28:28 +00:00
|
|
|
revision=2
|
2012-09-28 08:46:37 +00:00
|
|
|
build_style=gnu-configure
|
2012-11-13 08:44:23 +00:00
|
|
|
configure_args="--disable-static --disable-tests"
|
2014-02-20 17:28:28 +00:00
|
|
|
hostmakedepends="pkg-config intltool"
|
|
|
|
makedepends="libglib-devel libsoup-gnome-devel libxml2-devel libxslt-devel vala-devel"
|
2012-09-28 08:46:37 +00:00
|
|
|
short_desc="GObject based library API for managing info about operating systems"
|
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
2012-11-13 08:44:23 +00:00
|
|
|
homepage="https://fedorahosted.org/libosinfo/"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
|
|
|
distfiles="https://fedorahosted.org/releases/l/i/${pkgname}/${pkgname}-${version}.tar.gz"
|
2013-05-14 07:30:24 +00:00
|
|
|
checksum=fce8f43d02da7c8f05db1b3cf40850711d56978f880558fde5cde7c8d0b24a46
|
2014-02-20 17:28:28 +00:00
|
|
|
|
|
|
|
# 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
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
libosinfo-devel_package() {
|
|
|
|
depends="libglib-devel ${sourcepkg}-${version}_${revision}"
|
2013-05-14 07:28:28 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-02-20 17:28:28 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
vmove usr/share/vala
|
|
|
|
fi
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|