diff --git a/hyprland-git/hyprland-git.spec b/hyprland-git/hyprland-git.spec index a4386a0..9f2ccb3 100644 --- a/hyprland-git/hyprland-git.spec +++ b/hyprland-git/hyprland-git.spec @@ -12,10 +12,8 @@ %global libxkbcommon_version 1.11.0 -%global hyprland_version 0.52.2 - Name: hyprland-git -Version: %{hyprland_version}%{?bumpver:^%{bumpver}.git%{hyprland_shortcommit}} +Version: 0.52.2%{?bumpver:^%{bumpver}.git%{hyprland_shortcommit}} Release: %autorelease Summary: Dynamic tiling Wayland compositor that doesn't sacrifice on its looks diff --git a/hyprland-git/update.sh b/hyprland-git/update.sh index 910e11e..3d91655 100755 --- a/hyprland-git/update.sh +++ b/hyprland-git/update.sh @@ -3,7 +3,7 @@ set -euxo pipefail curl_opts=(--connect-timeout 10 --retry 7 --retry-connrefused -Ss -X POST) -oldHyprlandVersion="$(sed -n 's/.*hyprland_version \(.*\)/\1/p' hyprland-git.spec)" +oldHyprlandVersion="$(sed -n 's/Version: \(.*\)/\1/p' hyprland-git.spec | grep -Eow "[\.0-9]+")" newHyprlandVersion="$(curl -L \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ @@ -48,5 +48,5 @@ sed -e "s/$oldHyprlandCommit/$newHyprlandCommit/" \ -e "s/$oldCommitDate/$newCommitDate/" \ -e "s/$oldProtocolsCommit/$newProtocolsCommit/" \ -e "s/$oldUdis86Commit/$newUdis86Commit/" \ - -e "/%global hyprland_version/s/$oldHyprlandVersion/$newHyprlandVersion/" \ + -e "/Version: /s/$oldHyprlandVersion/$newHyprlandVersion/" \ -i hyprland-git.spec