xbps-src: support gitlab in update-check
Closes: #10928 [via git-merge-pr]
This commit is contained in:
parent
7a1717c3b1
commit
a634456691
3 changed files with 4 additions and 4 deletions
|
@ -48,6 +48,10 @@ update_check() {
|
|||
githubname="$(printf %s "$url" | cut -d/ -f4,5)"
|
||||
url="https://github.com/$githubname/tags"
|
||||
rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
|
||||
*gitlab.com*)
|
||||
gitlabname="$(printf %s "$url" | cut -d/ -f4,5)"
|
||||
url="https://gitlab.com/$gitlabname/tags"
|
||||
rx='href="/\Q'$gitlabname'\E/repository/[^\d\.]*\K[\d\.]+(?=/archive\.tar\.gz")';;
|
||||
*bitbucket.org*)
|
||||
bbname="$(printf %s "$url" | cut -d/ -f4,5)"
|
||||
url="https://bitbucket.org/$bbname/downloads"
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
site="${homepage}/tags"
|
||||
pattern="/tags/\K[\d.]+"
|
|
@ -1,2 +0,0 @@
|
|||
site="https://gitlab.com/o9000/tint2/tags"
|
||||
pattern='tags\/v\K[^\d]*([\d\.]+)(?=")'
|
Loading…
Reference in a new issue