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