font-sil-ezra: add update pattern
This commit is contained in:
parent
2b31628938
commit
a13d9ef8da
|
@ -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
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
site="https://software.sil.org/ezra/"
|
||||
pkgname=EzraSIL
|
Loading…
Reference in New Issue