version=${version%%.*}
pattern="${pkgname}-\K\d{8}(?=-[\d.]+\.tar)"
