blob: 54a5b5b8016b49397149a120517de8f74cd1df4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
_source_ryujinx() {
_pkgsrc="${_pkgname}-$_pkgver"
_pkgext="tar.gz"
source=("${_pkgsrc,,}.$_pkgext"::"$url/-/archive/${_tag:-$_pkgver}/$_pkgsrc.$_pkgext")
sha256sums=('SKIP')
}
_update_version() {
: ${_pkgver:=$pkgver}
if [[ "${_autoupdate::1}" != "t" ]]; then
return
fi
local _response _pkgver_new
_response=$(curl -Ssf -L --max-redirs 3 "$url/-/releases.atom")
_tag=$(
printf '%s' "$_response" \
| grep -E '/releases/([0-9\.]+)"' \
| sed -E 's&^.*/releases/([0-9\.]+)".*$&\1&' \
| sort -rV | head -1
)
_pkgver_new="${_tag:?}"
if [ "$_pkgver" != "${_pkgver_new:?}" ]; then
_pkgver="${_pkgver_new:?}"
fi
}
|