diff --git a/srcpkgs/xfce4-dev-tools/template b/srcpkgs/xfce4-dev-tools/template index ac3c4812990..b0b540766de 100644 --- a/srcpkgs/xfce4-dev-tools/template +++ b/srcpkgs/xfce4-dev-tools/template @@ -12,3 +12,13 @@ license="GPL-2.0-or-later" homepage="https://xfce.org/" distfiles="https://archive.xfce.org/src/xfce/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2" checksum=f50b3070e66f3ebdf331744dd1ec5e1af5de333965d491e15ce05545e8eb4f04 + +post_patch() { + [ "$CROSS_BUILD" ] || return 0 + # For testing, which can't be run on cross build + vsed -i -e '/^\ttest-xdt-csource\t/d' tests/Makefile.am + vsed -i -e 's/^TESTS =.*/TESTS =/' \ + -e 's/^check_PROGRAMS =.*/check_PROGRAMS =/' \ + -e 's/\$.*xdt-csource --extern.*>/touch /' \ + tests/Makefile.in +}