eval "$(
  declare -f prepare | \
    sed '
      s|export CC_OPT_FLAGS="-march=x86-64"|export CC_OPT_FLAGS="-march=${CARCH}"|
    '
)"

makedepends=(
  $(
    printf '%s\n' "${makedepends[@]}" | \
      sed 's/cuda//' | sed 's/cudnn//'
  )
)