add the rest of hyprland deps

This commit is contained in:
Matthew Stobbs
2025-03-02 16:10:51 -07:00
parent bf02eab5ec
commit d58ea8dafe
13 changed files with 309 additions and 1 deletions

View File

@@ -0,0 +1,48 @@
- name: Remove existing install
when:
- hyprland_protocols.clean
become: true
loop: "{{ hyprland_protocols.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland_protocols.prefix }}/{{ file }}"
- name: Check if hyprland-protocols is installed
register: stat_hyprland_protocols_inst
ansible.builtin.stat:
path: "{{ hyprland_protocols.prefix }}/share/hyprland-protocols/protocols/hyprland-ctm-control-v1.xml"
- name: Build and install hyprland-protocols
when:
- not stat_hyprland_protocols_inst.stat.exists
block:
- name: Clone git repository
ansible.builtin.git:
depth: 1
recursive: true
dest: "{{ hyprland_protocols.git_path }}"
repo: "{{ hyprland_protocols.repo }}"
version: "{{ hyprland_protocols.vers }}"
- name: Build hyprland-protocols
ansible.builtin.command:
creates: "{{ hyprland_protocols.git_path }}/build/build.ninja"
chdir: "{{ hyprland_protocols.git_path }}"
argv:
- meson
- setup
- --prefix={{ hyrpland.prefix }}
- build
- name: Install hyprland-protocols
become: true
ansible.builtin.command:
creates: "{{ hyprland_protocols.prefix }}/share/hyprland-protocols/protocols/hyprland-ctm-control-v1.xml"
chdir: "{{ hyprland_protocols.git_path }}"
argv:
- meson
- install
- -C
- build