fix multiple source install bugs

This commit is contained in:
Matthew Stobbs
2025-03-11 20:16:22 -06:00
parent 5cfa05007c
commit 2fd82b09d5
22 changed files with 99 additions and 67 deletions

View File

@@ -12,11 +12,11 @@
- name: Check if aquamarine is installed
register: stat_aquamarine_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/lib64/libaquamarine.so"
path: "{{ hyprland.prefix }}/{{ lib_path }}/libaquamarine.so"
- name: Build and install aquamarine
when:
- stat_aquamarine_inst.stat.exists
- not stat_aquamarine_inst.stat.exists
block:
- name: Clone git repository
ansible.builtin.git:
@@ -25,6 +25,12 @@
repo: "{{ aquamarine.repo }}"
version: "{{ aquamarine.vers }}"
- name: Apply patch for alpine linux
ansible.posix.patch:
basedir: "{{ aquamarine.git_path }}"
src: aquamarine/Alpine.patch
state: present
- name: Configure aquamarine
ansible.builtin.command:
creates: "{{ aquamarine.git_path }}/build"
@@ -32,7 +38,7 @@
argv:
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
- -S
- .
@@ -57,7 +63,7 @@
- name: Install aquamarine
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/aquamarine"
creates: "{{ hyprland.prefix }}/{{ lib_path }}/libaquamarine.so"
chdir: "{{ aquamarine.git_path }}"
argv:
- cmake