debug=false
pacman_args=""
operation="none"
+force_aur=false
wfa_version="0.1"
aururl="https://aur.archlinux.org/"
operation_sync() {
local _package
for _package in ${specified_packages[@]}; do
- if ! check_aur_package "${_package}"; then
+ if ! check_aur_package "${_package}" && [[ "${force_aur}" = false ]]; then
# 公式パッケージなのでpacmanでそのままインストール
run_pacman "${_package}"
else
# Parse options
ARGUMENT="${@}"
-_opt_short="QRShVdb:"
-_opt_long="query,remove,sync,help,version,debug,dbpath:,aururl"
+_opt_short="QRShVdb:a"
+_opt_long="query,remove,sync,help,version,debug,dbpath:,aururl,aur"
OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- ${ARGUMENT})
[[ ${?} != 0 ]] && exit 1
while :; do
case ${1} in
+ -a | --aur)
+ force_aur=true
+ msg_debug "Assume targets are from the AUR"
+ shift 1
+ ;;
-d | --debug)
debug=true
add_pacman_args "--debug"