1 2 3 4 5 6
#!/bin/sh grep -q '\$CARCH' 'PKGBUILD' && \ CARCH=i686 makepkg --printsrcinfo > \ '.SRCINFO' || \ mksrcinfo -o .SRCINFO