pattern='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\._]+(?=\.tar\.gz")'
version=${version//_/.}
