xfce4-dev-tools: fix cross build

This commit is contained in:
Đoàn Trần Công Danh 2020-12-27 22:01:23 +07:00
parent 11620b1cae
commit 8c32d55744

View file

@ -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
}