grilo: enable gir and vapi

This commit is contained in:
maxice8 2019-02-07 03:02:54 -02:00 committed by maxice8
parent 2cbc1e3cc2
commit 2c9f2a1328
1 changed files with 10 additions and 8 deletions

View File

@ -1,13 +1,14 @@
# Template file for 'grilo'
pkgname=grilo
version=0.3.7
revision=1
revision=2
build_style=meson
build_helper="gir"
configure_args="-Denable-introspection=$(vopt_if gir true false)
-Denable-vala=$(vopt_if gir true false)"
hostmakedepends="pkg-config glib-devel"
makedepends="gtk+3-devel libxml2-devel libsoup-devel liboauth-devel totem-pl-parser-devel
$(vopt_if gir gobject-introspection) $(vopt_if vala vala-devel)"
hostmakedepends="pkg-config glib-devel $(vopt_if vala vala)"
makedepends="gtk+3-devel libxml2-devel libsoup-devel liboauth-devel
totem-pl-parser-devel"
short_desc="Framework focused on making media discovery and browsing easy"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
@ -18,10 +19,11 @@ checksum=ea3baf71692df177649a968635ed2bc39855c34c327274245c240f726831e9b7
# 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
grilo-devel_package() {
depends="${makedepends} grilo>=${version}_${revision}"