gssdp: enable gir and vapi

This commit is contained in:
maxice8 2019-02-07 03:12:23 -02:00 committed by maxice8
parent 2c9f2a1328
commit eb5382126d
1 changed files with 8 additions and 7 deletions

View File

@ -1,12 +1,12 @@
# Template file for 'gssdp'
pkgname=gssdp
version=1.0.3
revision=1
revision=2
build_style=meson
build_helper="gir"
configure_args="-Dvapi=$(vopt_if vala true false) -Dexamples=false
-Dintrospection=$(vopt_if gir true false)"
hostmakedepends="pkg-config glib-devel $(vopt_if gir gobject-introspection)
$(vopt_if vala 'vala-devel')"
hostmakedepends="pkg-config glib-devel $(vopt_if vala 'vala')"
makedepends="gtk+3-devel libsoup-devel libglib-devel"
short_desc="GObject-based library for SSDP"
maintainer="Juan RP <xtraeme@voidlinux.org>"
@ -18,10 +18,11 @@ checksum=211387a62bc1d99821dd0333d873a781320287f5436f91e58b2ca145b378be41
# Package build options
build_options="gir vala"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir vala"
fi
case "$XBPS_TARGET_MACHINE" in
x86_64-musl) build_options_default+=" gir vala" ;;
*-musl) ;;
*) build_options_default+=" gir vala" ;;
esac
gssdp-devel_package() {
depends="libsoup-devel gssdp>=${version}_${revision}"