void-packages/srcpkgs/libcloudproviders/template

38 lines
1.1 KiB
Bash

# Template file for 'libcloudproviders'
pkgname=libcloudproviders
version=0.3.0
revision=1
build_style=meson
configure_args="-Dintrospection=$(vopt_if gir true false)
-Dvapigen=$(vopt_if vala true false)"
hostmakedepends="pkg-config glib-devel $(vopt_if gir 'gobject-introspection')
$(vopt_if vala 'vala-devel')"
makedepends="libglib-devel"
short_desc="DBus API for cloud storage sync clients to expose their services"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="LGPL-3.0-or-later"
homepage="https://gitlab.gnome.org/Incubator/libcloudproviders"
distfiles="${homepage}/-/archive/${version}/libcloudproviders-${version}.tar.gz"
checksum=15c9d82885baa101eb2542d7de1fcba4824e885726bee07c2b9d8f938b0bcadd
build_options="gir vala"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir vala"
fi
libcloudproviders-devel_package() {
depends="${sourcepkg}-${version}_${revision} glib-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}