# Function to prevent a package from compiling on an unsupported architecture
compileonlyfor() {
  # usage: compileonlyfor <arch> 
  # will cause compilation to exit with 0 if uname -m does not match <arch>
  archname="$(uname -m)"
  archargument=$1
  if [ "$archname" != "$archargument" ]; then
    echo ""
    echo "[INFO] '"$APP"' not supported on '"$archname"' and hence not"
    echo "[INFO] not being built. Exiting."
    exit 0
  fi
}

