# prepare configure for cross-compilation sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD # we don't have a valid locale yet, disable NLS sed -i 's@./configure@./configure --disable-nls@g' PKGBUILD