Files
ansible_role_package/tasks/src/aquamarine.yml
2025-04-04 16:17:22 -06:00

48 lines
1.5 KiB
YAML

# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- aquamarine.clean
vars:
file_list: "{{ srcconfig.aquamarine.build_installed_files }}"
ansible.builtin.include_tasks:
file: helpers/clean_install.yml
- name: Check for installed {{ pkg }}
register: stat_aquamarine_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/{{ lib_path }}/libaquamarine.so"
- name: Build and install {{ pkg }}
when:
- not stat_aquamarine_inst.stat.exists
block:
- name: Do repo clone {{ pkg }}
vars:
src_pkg: aquamarine
src_path: "{{ srcconfig.aquamarine.src_path }}"
src_gitrepo: "{{ srcconfig.aquamarine.gitrepo }}"
src_version: "{{ aquamarine.vers }}"
ansible.builtin.include_tasks:
file: helpers/git.yml
- name: Apply patch for alpine linux {{ pkg }}
when:
- ansible_os_family == 'Alpine'
ansible.posix.patch:
basedir: "{{ aquamarine.git_path }}"
src: aquamarine/Alpine.patch
state: present
strip: 1
- name: Do build and install {{ pkg }}
vars:
src_path: "{{ srcconfig.aquamarine.src_path }}"
configure: "{{ srcconfig.aquamarine.configure }}"
build_creates: "{{ srcconfig.aquamarine.build_creates }}"
build: "{{ srcconfig.aquamarine.build }}"
install_creates: "{{ srcconfig.aquamarine.install_creates }}"
install: "{{ srcconfig.aquamarine.install }}"
ansible.builtin.include_tasks:
file: helpers/cmake_build.yml