xbps-src: support gitlab in update-check

Closes: #10928 [via git-merge-pr]
This commit is contained in:
Piotr Wójcik 2018-01-17 12:18:40 +01:00 committed by Jürgen Buchmüller
parent 7a1717c3b1
commit a634456691
3 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -1,2 +0,0 @@
site="${homepage}/tags"
pattern="/tags/\K[\d.]+"

View File

@ -1,2 +0,0 @@
site="https://gitlab.com/o9000/tint2/tags"
pattern='tags\/v\K[^\d]*([\d\.]+)(?=")'