2012-09-28 10:46:37 +02:00
|
|
|
# Template file for 'libosinfo'
|
|
|
|
pkgname=libosinfo
|
2014-08-30 09:24:22 +02:00
|
|
|
version=0.2.11
|
|
|
|
revision=1
|
2012-09-28 10:46:37 +02:00
|
|
|
build_style=gnu-configure
|
2014-08-30 09:24:22 +02:00
|
|
|
configure_args="--disable-static --disable-tests $(vopt_enable gir introspection)"
|
|
|
|
hostmakedepends="pkg-config intltool glib-devel"
|
|
|
|
makedepends="libglib-devel libsoup-gnome-devel libxml2-devel libxslt-devel vala-devel $(vopt_if gir gobject-introspection)"
|
2012-09-28 10:46:37 +02:00
|
|
|
short_desc="GObject based library API for managing info about operating systems"
|
2014-06-08 11:52:36 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-11-13 09:44:23 +01:00
|
|
|
homepage="https://fedorahosted.org/libosinfo/"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
|
|
|
distfiles="https://fedorahosted.org/releases/l/i/${pkgname}/${pkgname}-${version}.tar.gz"
|
2014-08-30 09:24:22 +02:00
|
|
|
checksum=bb6ba136756b26045ba3ed9b3c1b0920a639dd80b007769a1df356d8e2fe0921
|
2014-02-20 18:28:28 +01:00
|
|
|
|
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
2013-04-13 10:15:49 +02:00
|
|
|
libosinfo-devel_package() {
|
|
|
|
depends="libglib-devel ${sourcepkg}-${version}_${revision}"
|
2013-05-14 09:28:28 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-02-20 18:28:28 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
vmove usr/share/vala
|
|
|
|
fi
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|