archweb_get_pkgbase() {
  local pkgbase

  pkgbase=$(curl -Gs 'https://www.archlinux.org/packages/search/json/' --data-urlencode "q=$1" |
      jq -r --arg pkgname "$1" 'limit(1; .results[] | select(.pkgname == $pkgname).pkgbase)')
  [[ $pkgbase ]] || return

  printf '%s\n' "$pkgbase"
}

archweb_get_pkgbase() {
  local pkgbase

  pkgbase=$(curl -LGs 'https://archlinux.org/packages/search/json/' --data-urlencode "q=$1" |
      jq -r --arg pkgname "$1" 'limit(1; .results[] | select(.pkgname == $pkgname).pkgbase)')
  [[ $pkgbase ]] || return

  printf '%s\n' "$pkgbase"
}

Fix archweb url to follow new redirection
Fix archweb url to follow new redirection

```www.archlinux.org``` now redirects to ```archlinux.org```.
Reflect that in the the ```curl``` command and tell it to follow
redirects from now on.
