add the rest of hyprland deps
This commit is contained in:
63
tasks/src/xdg_desktop_portal_hyprland.yml
Normal file
63
tasks/src/xdg_desktop_portal_hyprland.yml
Normal file
@@ -0,0 +1,63 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ xdg_desktop_portal_hyprland.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if xdg_desktop_portal_hyprland is installed
|
||||
register: stat_xdg_desktop_portal_hyprland_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hyprland-share-picker"
|
||||
|
||||
- name: Build and install xdg_desktop_portal_hyprland
|
||||
when:
|
||||
- not stat_xdg_desktop_portal_hyprland_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ xdg_desktop_portal_hyprland.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ xdg_desktop_portal_hyprland.repo }}"
|
||||
version: "{{ xdg_desktop_portal_hyprland.vers }}"
|
||||
|
||||
- name: Configure xdg_desktop_portal_hyprland
|
||||
ansible.builtin.command:
|
||||
creates: "{{ xdg_desktop_portal_hyprland.git_path }}/build"
|
||||
chdir: "{{ xdg_desktop_portal_hyprland.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- -DCMAKE_INSTALL_LIBEXECDIR={{ hyprland.prefix }}/lib
|
||||
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build xdg_desktop_portal_hyprland
|
||||
ansible.builtin.command:
|
||||
creates: "{{ xdg_desktop_portal_hyprland.git_path }}/build/xdg-desktop-portal-hyprland"
|
||||
chdir: "{{ xdg_desktop_portal_hyprland.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install xdg_desktop_portal_hyprland
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprland-share-picker"
|
||||
chdir: "{{ xdg_desktop_portal_hyprland.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
Reference in New Issue
Block a user