update-check: add gitlab.freedesktop.org
This commit is contained in:
parent
80cbd2d4bb
commit
1bbbd55871
@ -48,7 +48,7 @@ update_check() {
|
|||||||
githubname="$(printf %s "$url" | cut -d/ -f4,5)"
|
githubname="$(printf %s "$url" | cut -d/ -f4,5)"
|
||||||
url="https://github.com/$githubname/tags"
|
url="https://github.com/$githubname/tags"
|
||||||
rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
|
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)"
|
gitlaburl="$(printf %s "$url" | cut -d/ -f1-5)"
|
||||||
url="$gitlaburl/tags"
|
url="$gitlaburl/tags"
|
||||||
rx='/archive/[^/]+/\Q'"$pkgname"'\E-v?\K[\d\.]+(?=\.tar\.gz")';;
|
rx='/archive/[^/]+/\Q'"$pkgname"'\E-v?\K[\d\.]+(?=\.tar\.gz")';;
|
||||||
@ -83,7 +83,7 @@ update_check() {
|
|||||||
done |
|
done |
|
||||||
tr _ . |
|
tr _ . |
|
||||||
sort -Vu |
|
sort -Vu |
|
||||||
{
|
{
|
||||||
grep . || echo "NO VERSION found for $original_pkgname" 1>&2
|
grep . || echo "NO VERSION found for $original_pkgname" 1>&2
|
||||||
} |
|
} |
|
||||||
while IFS= read -r found_version; do
|
while IFS= read -r found_version; do
|
||||||
|
@ -1,2 +1 @@
|
|||||||
site=https://gitlab.freedesktop.org/mesa/drm/tags
|
|
||||||
pkgname=drm-libdrm
|
pkgname=drm-libdrm
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
site=https://gitlab.freedesktop.org/spice/spice-protocol/tags
|
|
||||||
pattern="v\K[\d\.]*(?=\.tar\.gz)"
|
|
Loading…
x
Reference in New Issue
Block a user