From 363526fc1056e04dd9a71869f2112f77b08fc4ef Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Tue, 5 Jul 2022 14:15:15 +0200 Subject: [PATCH] ghex: fix docs cross --- srcpkgs/ghex/template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcpkgs/ghex/template b/srcpkgs/ghex/template index ac3080f2baf..6d9b98d886a 100644 --- a/srcpkgs/ghex/template +++ b/srcpkgs/ghex/template @@ -21,6 +21,13 @@ checksum=add40f8ab24921db30d27be58f00273201977d87fdc8d79eceadfa8b0e354def build_options="gir gtk_doc" build_options_default="gir gtk_doc" +pre_build() { + # help gi-docgen find gi files on cross + if [ -n "$CROSS_BUILD" ]; then + export XDG_DATA_DIRS=/usr/$XBPS_CROSS_TRIPLET/usr/share/ + fi +} + libgtkhex_package() { short_desc+=" - runtime library" pkg_install() {