fixpkg: mangohud

This commit is contained in:
MedzikUser 2022-05-21 09:59:11 +02:00
parent bd87d6ad46
commit 9082ef4742
4 changed files with 8 additions and 4 deletions

View File

@ -1,2 +0,0 @@
AUR_NAME="mangohud-wayland"
AUR_UPDATED="1652717058"

View File

@ -1,2 +0,0 @@
AUR_NAME="mangohud-x11"
AUR_UPDATED="1652717034"

View File

@ -0,0 +1,2 @@
AUR_NAME="mangohud"
AUR_UPDATED="null"

View File

@ -29,6 +29,12 @@ update-package() {
local latest_version="$(curl --location --silent "https://aur.archlinux.org/rpc/?v=5&type=info&arg=${AUR_NAME}" | jq -r '.results[0].Version')"
local last_updated="$(curl --location --silent "https://aur.archlinux.org/rpc/?v=5&type=info&arg=${AUR_NAME}" | jq -r '.results[0].LastModified')"
if [[ -z "${last_updated}" || "${last_updated}" = "null" ]]
then
echo "[!] Failed to get latest version of ${pkgname}"
return 1
fi
if [ "${version}" = "${last_updated}" ]
then
return 0