From 5de15034347e1d51d960887c273f70942d93c958 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Mon, 17 Aug 2020 12:51:35 +0200 Subject: [PATCH] xbps-src/update-check: add codeberg support --- common/xbps-src/shutils/update_check.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index 9b3d322e79..b450c57bee 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -56,6 +56,7 @@ update_check() { *cran.r-project.org/src/contrib*|\ *rubygems.org*|\ *crates.io*|\ + *codeberg.org*|\ *hg.sr.ht*) continue ;; @@ -136,6 +137,10 @@ update_check() { *crates.io*) url="https://crates.io/api/v1/crates/${pkgname#rust-}" rx='/crates/'${pkgname#rust-}'/\K[0-9.]*(?=/download)' ;; + *codeberg.org*) + pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)" + url="https://codeberg.org/$pkgurlname/releases" + rx='/archive/\K[\d\.]+(?=\.tar\.gz)' ;; *hg.sr.ht*) pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)" url="https://hg.sr.ht/$pkgurlname/tags"