update-check: add gitlab.freedesktop.org

This commit is contained in:
Piotr Wójcik 2018-12-08 12:22:56 +01:00 committed by Helmut Pozimski
parent 80cbd2d4bb
commit 1bbbd55871
3 changed files with 2 additions and 5 deletions

View file

@ -48,7 +48,7 @@ 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*|*gitlab.gnome.org*)
*gitlab.com*|*gitlab.gnome.org*|*gitlab.freedesktop.org*)
gitlaburl="$(printf %s "$url" | cut -d/ -f1-5)"
url="$gitlaburl/tags"
rx='/archive/[^/]+/\Q'"$pkgname"'\E-v?\K[\d\.]+(?=\.tar\.gz")';;
@ -83,7 +83,7 @@ update_check() {
done |
tr _ . |
sort -Vu |
{
{
grep . || echo "NO VERSION found for $original_pkgname" 1>&2
} |
while IFS= read -r found_version; do

View file

@ -1,2 +1 @@
site=https://gitlab.freedesktop.org/mesa/drm/tags
pkgname=drm-libdrm

View file

@ -1,2 +0,0 @@
site=https://gitlab.freedesktop.org/spice/spice-protocol/tags
pattern="v\K[\d\.]*(?=\.tar\.gz)"