--- makepkg.orig 2007-06-04 09:20:50.737551203 +0200 +++ makepkg 2007-06-08 10:27:46.769491916 +0200 @@ -49,6 +49,7 @@ RMDEPS=0 REPKG=0 LOGGING=0 +IGNORE_ARCH=0 PACMAN_OPTS= @@ -374,6 +375,7 @@ echo "Usage: $0 [options]" echo echo "Options:" + echo " -A, --ignorearch Ignore your arch missing in the PKGBUILD" echo " -b, --builddeps Build missing dependencies from source" echo " -c, --clean Clean up work files after build" echo " -C, --cleancache Clean up source files from the cache" @@ -441,6 +443,7 @@ --nodeps) NODEPS=1 ;; --noextract) NOEXTRACT=1 ;; --install) INSTALL=1 ;; + --ignorearch) IGNORE_ARCH=1 ;; --force) FORCE=1 ;; --nobuild) NOBUILD=1 ;; --nocolor) USE_COLOR="n" ;; @@ -457,8 +460,9 @@ exit 1 ;; -*) - while getopts "bcCdefghiLmop:rRsS-" opt; do + while getopts "AbcCdefghiLmop:rRsS-" opt; do case $opt in + A) IGNORE_ARCH=1 ;; b) DEP_SRC=1 ;; c) CLEANUP=1 ;; C) CLEANCACHE=1 ;; @@ -569,10 +573,16 @@ exit 1 fi if ! in_array $CARCH ${arch[@]}; then - error "$pkgname is not available for the '$CARCH' architecture." - plain "Note that many packages may need a line added to their $BUILDSCRIPT" - plain "such as arch=('$CARCH')." - exit 1 + if [ "$IGNORE_ARCH" = "0" ]; then + error "$pkgname is not available for the '$CARCH' architecture." + plain "Note that many packages may need a line added to their $BUILDSCRIPT" + plain "such as arch=('$CARCH')." + exit 1 + else + warning "$pkgname is not available for the '$CARCH' architecture." + plain "Note that many packages may need a line added to their $BUILDSCRIPT" + plain "such as arch=('$CARCH')." + fi fi if [ "$install" -a ! -f "$install" ]; then