# prepare configure for cross-compilation sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD # don't build documentation sed -i "/depends=/s/gtk-doc//" PKGBUILD sed -i "s/--enable-gtk-doc/--disable-gtk-doc/" PKGBUILD