void-packages/srcpkgs/libosinfo/template

44 lines
1.3 KiB
Plaintext
Raw Normal View History

2012-09-28 10:46:37 +02:00
# Template file for 'libosinfo'
pkgname=libosinfo
2014-03-27 18:20:12 +01:00
version=0.2.10
2014-03-27 18:16:22 +01:00
revision=1
2012-09-28 10:46:37 +02:00
build_style=gnu-configure
2012-11-13 09:44:23 +01:00
configure_args="--disable-static --disable-tests"
hostmakedepends="pkg-config intltool"
makedepends="libglib-devel libsoup-gnome-devel libxml2-devel libxslt-devel vala-devel"
2012-09-28 10:46:37 +02:00
short_desc="GObject based library API for managing info about operating systems"
maintainer="davehome <davehome@redthumb.info.tm>"
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-03-27 18:20:12 +01:00
checksum=564bd487a39dc09a10917c1d7a95f739ee7701d9cd0fbabcacea64f615e20a2d
# 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}"
2013-05-14 09:28:28 +02:00
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
}
}