Files
ansible_role_package/tasks/src/aquamarine.yml
2025-03-02 09:44:40 -07:00

59 lines
1.5 KiB
YAML

- name: Remove existing install
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: "{{ aquamarine.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Build and install aquamarine
block:
- name: Clone git repository
ansible.builtin.git:
depth: 1
dest: "{{ aquamarine.git_path }}"
repo: "{{ aquamarine.repo }}"
version: "{{ aquamarine.vers }}"
- name: Configure aquamarine
ansible.builtin.command:
creates: "{{ aquamarine.git_path }}/build"
chdir: "{{ aquamarine.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -S
- .
- -B
- ./build
- name: Build aquamarine
ansible.builtin.command:
creates: "{{ aquamarine.git_path }}/build/libaquamarine.so"
chdir: "{{ aquamarine.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc|int }}"
- name: Install aquamarine
become: "{{ ext_become }}"
ansible.builtin.command:
creates: "{{ path.bin }}/aquamarine"
chdir: "{{ aquamarine.git_path }}"
argv:
- cmake
- --install
- ./build