# xz is needed for libarchive SYSROOT_INSTALL=1 # prepare configure for cross-compilation sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD # with gcc 7.2 we get new errors, disable termination on warnings sed -i 's@--enable-werror@--disable-werror@g' PKGBUILD