libsecret: enable gir, add vala build_option

This commit is contained in:
maxice8 2019-02-07 21:11:20 -02:00 committed by maxice8
parent 2ecae50979
commit 0b66a39a1f

View file

@ -3,11 +3,11 @@ pkgname=libsecret
version=0.18.7
revision=1
build_style=gnu-configure
build_helper="gir"
configure_args="$(vopt_enable gir introspection) --disable-static
--with-libgcrypt-prefix=${XBPS_CROSS_BASE}/usr"
hostmakedepends="glib-devel gtk-doc pkg-config libxslt
$(vopt_if gir 'gobject-introspection')"
makedepends="libgcrypt-devel vala-devel"
--with-libgcrypt-prefix=${XBPS_CROSS_BASE}/usr $(vopt_enable vala)"
hostmakedepends="glib-devel gtk-doc pkg-config libxslt $(vopt_if vala vala)"
makedepends="libgcrypt-devel $(vopt_if vala vala) libglib-devel"
short_desc="GObject based library for accessing the Secret Service API"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later"
@ -16,12 +16,13 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=0d66fe1fc4561b3e046ee281d7c5a703a9baac88a8c4fb42ebc739d31dabd487
# Package build options
build_options="gir"
build_options="gir vala"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
case "$XBPS_TARGET_MACHINE" in
x86_64-musl) build_options_default+=" gir vala" ;;
*-musl) ;;
*) build_options_default+=" gir vala" ;;
esac
libsecret-devel_package() {
depends="libglib-devel ${sourcepkg}-${version}_${revision}"
@ -33,6 +34,8 @@ libsecret-devel_package() {
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}