update-check: special case for XFCE Archive

This commit is contained in:
Đoàn Trần Công Danh 2022-09-06 18:32:41 +07:00
parent 200361a561
commit 875b1f9806

View file

@ -26,6 +26,7 @@ update_check() {
case "$distfiles" in case "$distfiles" in
# only consider versions those exist in ftp.gnome.org # only consider versions those exist in ftp.gnome.org
*ftp.gnome.org*) ;; *ftp.gnome.org*) ;;
*archive.xfce.org*) ;;
*) *)
printf '%s\n' "$homepage" ;; printf '%s\n' "$homepage" ;;
esac esac
@ -58,6 +59,7 @@ update_check() {
*//gitlab.*|\ *//gitlab.*|\
*bitbucket.org*|\ *bitbucket.org*|\
*ftp.gnome.org*|\ *ftp.gnome.org*|\
*archive.xfce.org*|\
*kernel.org/pub/linux/kernel/*|\ *kernel.org/pub/linux/kernel/*|\
*cran.r-project.org/src/contrib*|\ *cran.r-project.org/src/contrib*|\
*rubygems.org*|\ *rubygems.org*|\
@ -137,6 +139,9 @@ update_check() {
*ftp.gnome.org*|*download.gnome.org*) *ftp.gnome.org*|*download.gnome.org*)
: ${pattern="\Q$pkgname\E-\K(0|[13]\.[0-9]*[02468]|[4-9][0-9]+)\.[0-9.]*[0-9](?=)"} : ${pattern="\Q$pkgname\E-\K(0|[13]\.[0-9]*[02468]|[4-9][0-9]+)\.[0-9.]*[0-9](?=)"}
url="https://download.gnome.org/sources/$pkgname/cache.json";; url="https://download.gnome.org/sources/$pkgname/cache.json";;
*archive.xfce.org*)
: ${pattern="\Q$pkgname\E-\K((([4-9]|([1-9][0-9]+))\.[0-9]*[02468]\.[0-9.]*[0-9])|([0-3]\.[0-9.]*))(?=.tar)"}
url="https://archive.xfce.org/feeds/project/$pkgname" ;;
*kernel.org/pub/linux/kernel/*) *kernel.org/pub/linux/kernel/*)
rx=linux-'\K'${version%.*}'[\d.]+(?=\.tar\.xz)';; rx=linux-'\K'${version%.*}'[\d.]+(?=\.tar\.xz)';;
*cran.r-project.org/src/contrib*) *cran.r-project.org/src/contrib*)