site="https://github.com/kovidgoyal/calibre/tags"
pattern='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")'