From 19250011115010f5d0be118c1b279e5c8ae49175 Mon Sep 17 00:00:00 2001 From: BluemediaGER Date: Thu, 21 Mar 2024 20:01:53 +0100 Subject: [PATCH] Update Hyprland to v0.37.1 including dependencies --- roles/desktop-environment/tasks/hyprland.yml | 52 +++++++++++++++----- 1 file changed, 39 insertions(+), 13 deletions(-) diff --git a/roles/desktop-environment/tasks/hyprland.yml b/roles/desktop-environment/tasks/hyprland.yml index f759427..ee544d0 100644 --- a/roles/desktop-environment/tasks/hyprland.yml +++ b/roles/desktop-environment/tasks/hyprland.yml @@ -15,6 +15,9 @@ - build-essential - cmake - meson + # hyprcursor + - libzip-dev + - librsvg2-dev # Hyprland - libpango1.0-dev - libtomlplusplus-dev @@ -33,13 +36,14 @@ loop: - "Hyprland" - "hyprlang" + - "hyprcursor" - "xdg-desktop-portal-hyprland" - name: Checkout Hyprland repo ansible.builtin.git: repo: 'https://github.com/hyprwm/Hyprland.git' dest: /usr/local/src/Hyprland - version: v0.35.0 + version: v0.37.1 force: true recursive: true @@ -47,7 +51,15 @@ ansible.builtin.git: repo: 'https://github.com/hyprwm/hyprlang.git' dest: /usr/local/src/hyprlang - version: v0.4.0 + version: v0.5.0 + force: true + recursive: true + +- name: Checkout hyprcursor repo + ansible.builtin.git: + repo: 'https://github.com/hyprwm/hyprcursor.git' + dest: /usr/local/src/hyprcursor + version: v0.1.4 force: true recursive: true @@ -59,17 +71,6 @@ force: true recursive: true -- name: Build Hyprland - community.general.make: - chdir: /usr/local/src/Hyprland - target: all - -- name: Install Hyprland - become: true - community.general.make: - chdir: /usr/local/src/Hyprland - target: install - - name: Build hyprlang ansible.builtin.command: cmd: "{{ item }}" @@ -84,6 +85,31 @@ cmd: "cmake --install build" chdir: /usr/local/src/hyprlang +- name: Build hyprcursor + ansible.builtin.command: + cmd: "{{ item }}" + chdir: /usr/local/src/hyprcursor + 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" + +- name: Install hyprcursor + become: yes + ansible.builtin.command: + cmd: "cmake --install build" + chdir: /usr/local/src/hyprcursor + +- name: Build Hyprland + community.general.make: + chdir: /usr/local/src/Hyprland + target: all + +- name: Install Hyprland + become: true + community.general.make: + chdir: /usr/local/src/Hyprland + target: install + - name: Build xdg-desktop-portal-hyprland ansible.builtin.command: cmd: "{{ item }}"