From ee86257e93211e77c51913323405207df4e38181 Mon Sep 17 00:00:00 2001 From: BluemediaDev Date: Sat, 21 Dec 2024 19:44:27 +0100 Subject: [PATCH] Update Hyprland to v0.46.2 --- roles/desktop-environment/tasks/hyprland.yml | 36 +++++++++++++++++--- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/roles/desktop-environment/tasks/hyprland.yml b/roles/desktop-environment/tasks/hyprland.yml index 0e858e5..173e154 100644 --- a/roles/desktop-environment/tasks/hyprland.yml +++ b/roles/desktop-environment/tasks/hyprland.yml @@ -7,7 +7,7 @@ - name: Add unstable repository become: yes ansible.builtin.apt_repository: - repo: deb http://deb.debian.org/debian unstable main contrib non-free-firmware + repo: "deb http://deb.debian.org/debian unstable main contrib non-free-firmware" state: present update_cache: true @@ -38,6 +38,9 @@ - libzip-dev - librsvg2-dev - libxcb-util-dev + # hyprgraphics + - libjxl-dev + - libmagic-dev # Hyprland - libpango1.0-dev - libtomlplusplus-dev @@ -52,6 +55,7 @@ - libxcb-res0-dev - xwayland - libzip4t64 + - libre2-dev # xdg-desktop-portal-hyprland - qt6-base-dev - libspa-0.2-dev @@ -73,6 +77,7 @@ - "hyprcursor" - "xdg-desktop-portal-hyprland" - "Aquamarine" + - "hyprgraphics" - name: Checkout hyprutils repo ansible.builtin.git: @@ -94,7 +99,7 @@ ansible.builtin.git: repo: 'https://github.com/hyprwm/hyprlang.git' dest: /usr/local/src/hyprlang - version: v0.5.3 + version: v0.6.0 force: true recursive: true @@ -110,22 +115,29 @@ ansible.builtin.git: repo: 'https://github.com/hyprwm/xdg-desktop-portal-hyprland.git' dest: /usr/local/src/xdg-desktop-portal-hyprland - version: v1.3.8 + version: v1.3.9 force: true - name: Checkout Aquamarine repo ansible.builtin.git: repo: 'https://github.com/hyprwm/aquamarine.git' dest: /usr/local/src/Aquamarine - version: v0.5.0 + version: v0.5.1 force: true recursive: true +- name: Checkout hyprgraphics repo + ansible.builtin.git: + repo: 'https://github.com/hyprwm/hyprgraphics.git' + dest: /usr/local/src/hyprgraphics + version: v0.1.1 + force: true + - name: Checkout Hyprland repo ansible.builtin.git: repo: 'https://github.com/hyprwm/Hyprland.git' dest: /usr/local/src/Hyprland - version: v0.45.0 + version: v0.46.2 force: true recursive: true @@ -199,6 +211,20 @@ cmd: "cmake --install build" chdir: /usr/local/src/Aquamarine +- name: Build hyprgraphics + ansible.builtin.command: + cmd: "{{ item }}" + chdir: /usr/local/src/hyprgraphics + loop: + - "cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build" + - "cmake --build ./build --config Release --target all --parallel 4" + +- name: Install hyprgraphics + become: yes + ansible.builtin.command: + cmd: "cmake --install build" + chdir: /usr/local/src/hyprgraphics + - name: Build Hyprland community.general.make: chdir: /usr/local/src/Hyprland