blob: 47900b299d6ddee4cd89b16fed7c8b6b0c44f800 (
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^}-Canary-${_pkgver%.Canary}"
_pkgext="tar.gz"
source=("${_pkgsrc,,}.$_pkgext"::"$url/archive/refs/tags/Canary-$_pkgver.$_pkgext")
sha256sums=('SKIP')
}
_update_version() {
: ${_pkgver:=$pkgver}
if [[ "${_autoupdate::1}" != "t" ]]; then
return
fi
local _response _pkgver_new
_response=$(curl -Ssf "$url/tags")
_tag=$(
printf '%s' "$_response" \
| grep -E '/tag/Canary-([0-9\.]+)"' \
| sed -E 's&^.*/tag/(Canary-[0-9\.]+)".*$&\1&' \
| sort -rV | head -1
)
_pkgver_new="${_tag#Canary-}"
if [ "$_pkgver" != "${_pkgver_new:?}" ]; then
_pkgver="${_pkgver_new:?}"
fi
}
|