mirror of
https://github.com/built-aur/packages
synced 2024-08-14 23:01:15 +00:00
fixpkg: mangohud
This commit is contained in:
parent
bd87d6ad46
commit
9082ef4742
4 changed files with 8 additions and 4 deletions
|
@ -1,2 +0,0 @@
|
|||
AUR_NAME="mangohud-wayland"
|
||||
AUR_UPDATED="1652717058"
|
|
@ -1,2 +0,0 @@
|
|||
AUR_NAME="mangohud-x11"
|
||||
AUR_UPDATED="1652717034"
|
2
packages/mangohud/built.conf
Normal file
2
packages/mangohud/built.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
AUR_NAME="mangohud"
|
||||
AUR_UPDATED="null"
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue