From a02b9cd0a49585b47245be4e9cf5f3da100fa564 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Fri, 15 Nov 2019 18:35:54 -0600 Subject: [PATCH] libaccounts-glib: unmark nocross --- srcpkgs/libaccounts-glib/template | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/srcpkgs/libaccounts-glib/template b/srcpkgs/libaccounts-glib/template index 717be24f209..e55fe3fafa4 100644 --- a/srcpkgs/libaccounts-glib/template +++ b/srcpkgs/libaccounts-glib/template @@ -4,16 +4,24 @@ version=1.24 revision=2 wrksrc="${pkgname}-VERSION_${version}-8948717702424ce15f4e23e5db2c8ce0799ec120" build_style=meson -hostmakedepends="gtk-doc pkg-config glib-devel gobject-introspection vala" -makedepends="sqlite-devel libxml2-devel libglib-devel python3-gobject-devel - check-devel" +build_helper="gir" +hostmakedepends="gtk-doc pkg-config python3-gobject-devel glib-devel gobject-introspection + vala" +makedepends="sqlite-devel libxml2-devel libglib-devel python3-gobject-devel check-devel" short_desc="GLib-based client library for the accounts database" maintainer="John Rowley " license="LGPL-2.1-only" homepage="https://gitlab.com/accounts-sso/libaccounts-glib" distfiles="https://gitlab.com/accounts-sso/${pkgname}/repository/archive.tar.gz?ref=VERSION_${version}>${pkgname}-${version}.tar.gz" checksum=b0c52ddbd0305a37395890c61ec9ca9b389a3ee923a4364640205cf798a92f56 -nocross="Hard depends on both gobject-introspection & python-gobject" + +if [ "$CROSS_BUILD" ]; then + # Remove docs. During install of package, it will try + # to run target binary with host, which causes exec error + pre_build() { + vsed -e '/docs/d' -i meson.build + } +fi libaccounts-glib-devel_package() { short_desc+=" - development files"