Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archweb.inc.sh
blob: dbe36a55a5f79785b37dfca1c7884ad06ffd2284 (plain)
1
2
3
4
archweb_get_pkgbase() {
  curl -s "https://www.archlinux.org/packages/search/json/?q=$1" |
    jq -er --arg pkgname "$1" 'limit(1; .results[] | select(.pkgname == $pkgname).pkgbase)'
}