From 43be63005994261d7cfd3af0246275b0de322f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 25 Mar 2020 01:08:47 +0100 Subject: [PATCH] gobject-introspection: really fix tests install Do what the tests/meson.build would have done. It is not run when cross compiling, thus copy the files listed there to their target directory usr/share/gobject-introspection-1.0/tests, omitting the subdirectories where they come from. --- srcpkgs/gobject-introspection/template | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/srcpkgs/gobject-introspection/template b/srcpkgs/gobject-introspection/template index fded42b243..7f576b4f8f 100644 --- a/srcpkgs/gobject-introspection/template +++ b/srcpkgs/gobject-introspection/template @@ -1,7 +1,7 @@ # Template file for 'gobject-introspection' pkgname=gobject-introspection version=1.64.0 -revision=3 +revision=4 build_style=meson pycompile_dirs="usr/lib/${pkgname}/giscanner" hostmakedepends="flex pkg-config" @@ -45,7 +45,11 @@ post_install() { # For cross builds copy the not installed tests subdirectory if [ "$CROSS_BUILD" ]; then vmkdir usr/share/gobject-introspection-1.0 - cp -aR ${wrksrc}/tests ${DESTDIR}/usr/share/gobject-introspection-1.0/ + for f in scanner/annotation.? scanner/drawable.? scanner/foo.? \ + scanner/regress.? scanner/utility.? scanner/warnlib.? \ + gimarshallingtests.? gitestmacros.h; do + vcopy tests/$f usr/share/gobject-introspection-1.0 + done fi # modify the pkg-config files to respect ${pc_sysrootdir} for variables that are