# prepare configure for cross-compilation sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@" PKGBUILD # no unit testing (using C 'check') sed -i "/makedepends=/s/'check'//" PKGBUILD # do not build test programs, they need libcheck sed -i "s@./configure@./configure --disable-tests @" PKGBUILD