font-sil-ezra: add update pattern

This commit is contained in:
Đoàn Trần Công Danh 2023-03-18 08:07:41 +07:00
parent 2b31628938
commit a13d9ef8da
2 changed files with 6 additions and 6 deletions

View File

@ -177,15 +177,13 @@ update_check() {
url="https://software.sil.org/$pkgurlname/download/"
pkgname="${pkgname#font-}"
pkgname="${pkgname#sil-}"
pkgname="$(echo "$pkgname" | sed 's/-/ /g;s/[a-z]*/\u&/g;s/ //g')"
rx="($pkgname|${pkgname}SIL)[_-]\K[0-9.]+(?=\.tar|\.zip)" ;;
_pkgname="${pkgname//-/}"
rx="($_pkgname|${_pkgname}SIL)[_-]\K[0-9.]+(?=\.tar|\.zip)" ;;
*software.sil.org/*)
pkgurlname=$(printf '%s\n' "$url" | cut -d/ -f4)
url="https://software.sil.org/$pkgurlname/download/"
pkgname="${pkgname#font-}"
pkgname="${pkgname#sil-}"
pkgname="$(echo "$pkgname" | sed 's/-/ /g;s/[a-z]*/\u&/g;s/ //g')"
rx="($pkgname|${pkgname}SIL)[_-]\K[0-9.]+(?=\.tar|\.zip)" ;;
_pkgname="${pkgname//-/}"
rx="($_pkgname|${_pkgname}SIL)[_-]\K[0-9.]+(?=\.tar|\.zip)" ;;
esac
fi

View File

@ -0,0 +1,2 @@
site="https://software.sil.org/ezra/"
pkgname=EzraSIL