void-packages/srcpkgs/libgdata/template

34 lines
1.0 KiB
Bash

# Template file for 'libgdata'
pkgname=libgdata
version=0.17.9
revision=2
build_style=gnu-configure
configure_args="--disable-static $(vopt_enable gir introspection)"
hostmakedepends="pkg-config flex intltool glib-devel $(vopt_if gir gobject-introspection)"
makedepends="json-glib-devel gtk+3-devel uhttpmock-devel liboauth-devel gcr-devel gnome-online-accounts-devel"
short_desc="Library for accessing GData webservices"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1"
homepage="http://live.gnome.org/libgdata"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=85c4f7674c0098ffaf060ae01b6b832cb277b3673d54ace3bdedaad6b127453a
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
libgdata-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/gtk-doc
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}