add the rest of hyprland deps
This commit is contained in:
48
tasks/src/hyprland_protocols.yml
Normal file
48
tasks/src/hyprland_protocols.yml
Normal 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
|
||||
@@ -1,7 +1,7 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
become: true
|
||||
loop: "{{ hyprlang.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
|
||||
66
tasks/src/sdbus_cpp_2.yml
Normal file
66
tasks/src/sdbus_cpp_2.yml
Normal file
@@ -0,0 +1,66 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- sdbus_cpp_2.clean
|
||||
become: true
|
||||
loop: "{{ sdbus_cpp_2.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ sdbus_cpp_2.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if sdbus-cpp-2 is installed
|
||||
register: stat_sdbus_cpp_2_inst
|
||||
ansible.builtin.stat:
|
||||
path: "{{ sdbus_cpp_2.prefix }}/lib64/libsdbus-c++.so"
|
||||
|
||||
- name: Build and install sdbus-cpp-2
|
||||
when:
|
||||
- not stat_sdbus_cpp_2_inst.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
recursive: true
|
||||
dest: "{{ sdbus_cpp_2.git_path }}"
|
||||
repo: "{{ sdbus_cpp_2.repo }}"
|
||||
version: "{{ sdbus_cpp_2.vers }}"
|
||||
|
||||
- name: Configure sdbus-cpp-2
|
||||
ansible.builtin.command:
|
||||
creates: "{{ sdbus_cpp_2.git_path }}/build"
|
||||
chdir: "{{ sdbus_cpp_2.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -dDCMAKE_INSTALL_PREFIX={{ sdbus_cpp_2.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build sdbus-cpp-2
|
||||
ansible.builtin.command:
|
||||
creates: "{{ sdbus_cpp_2.git_path }}/build/Makefile"
|
||||
chdir: "{{ sdbus_cpp_2.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install sdbus_cpp_2
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ sdbus_cpp_2.prefix }}/lib64/libsdbus-c++.so"
|
||||
chdir: "{{ sdbus_cpp_2.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
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