New comment by sgn on void-packages repository https://github.com/void-linux/void-packages/pull/21131#issuecomment-616556679 Comment: Here is my final diff on top of your change, this will enable cross-build for mu and fix the check, I think you're the maintainer of this package, if it's ok to you, I'll push this version out. ```diff diff --git a/srcpkgs/mu/template b/srcpkgs/mu/template index 51f733e03c..bbe37e1138 100644 --- a/srcpkgs/mu/template +++ b/srcpkgs/mu/template @@ -3,8 +3,9 @@ pkgname=mu version=1.4.1 revision=1 build_style=gnu-configure -hostmakedepends="automake libtool pkg-config emacs texinfo" +hostmakedepends="automake libtool pkg-config texinfo glib-devel" makedepends="xapian-core-devel gmime3-devel libuuid-devel" +checkdepends="tzdata" short_desc="Emacs-based tool for dealing with e-mail stored in the Maildir-format" maintainer="Benjamin Slade " license="GPL-3.0-or-later" @@ -12,12 +13,23 @@ homepage="https://www.djcbsoftware.nl/code/mu/" distfiles="https://github.com/djcb/mu/archive/${version}.tar.gz" checksum=66ae911abb3d7269514fada08e7a13ad61a205e10209055c41df2f9d17568274 +if [ ! "$CROSS_BUILD" ]; then + subpackages="mu4e" + hostmakedepends+=" emacs" +else + # force subpackages to non-empty value, + # else xbps-src will generate it. + subpackages=" " + configure_args+=" --disable-mu4e" +fi + pre_configure() { sed -i 's,-I${prefix}/include,,' contrib/Makefile.am autoreconf -fi } mu4e_package() { + archs=noarch short_desc+=" - Emacs frontend" depends="${sourcepkg}>=${version}_${revision} emacs" pkg_install() { ```