void-packages/srcpkgs/libgdata/template

42 lines
1.3 KiB
Bash

# Template file for 'libgdata'
pkgname=libgdata
version=0.18.1
revision=2
build_helper="gir"
build_style=meson
configure_args="-Dintrospection=$(vopt_if gir true false)
-Dvapi=$(vopt_if vala true false) -Dgtk_doc=false -Dalways_build_tests=false"
hostmakedepends="pkg-config flex intltool glib-devel $(vopt_if vala vala)"
makedepends="json-glib-devel gtk+3-devel gcr-devel gnome-online-accounts-devel
libsoup-devel"
short_desc="Library for accessing GData webservices"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/libgdata"
changelog="https://gitlab.gnome.org/GNOME/libgdata/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/libgdata/${version%.*}/libgdata-${version}.tar.xz"
checksum=dd8592eeb6512ad0a8cf5c8be8c72e76f74bfe6b23e4dd93f0756ee0716804c7
build_options="gir vala"
build_options_default="gir vala"
pre_build() {
export GIR_EXTRA_LIBS_PATH="${wrksrc}/gdata/.libs"
}
libgdata-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}