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

66
tasks/src/sdbus_cpp_2.yml Normal file
View 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