40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- name: Remove existing install of {{ pkg }}
|
|
when:
|
|
- hyprgraphics.clean
|
|
vars:
|
|
file_list: "{{ srcconfig.hyprcursor.build_installed_files }}"
|
|
ansible.builtin.include_tasks:
|
|
file: helpers/clean_install.yml
|
|
|
|
- name: Check for existing install {{ pkg }}
|
|
register: stat_hyprgraphics_inst
|
|
ansible.builtin.stat:
|
|
path: "{{ hyprland.prefix }}/{{ lib_path }}/libhyprgraphics.so"
|
|
|
|
- name: Build and install {{ pkg }}
|
|
when:
|
|
- not stat_hyprgraphics_inst.stat.exists
|
|
block:
|
|
- name: Do repo clone {{ pkg }}
|
|
vars:
|
|
src_pkg: hyprgraphics
|
|
src_path: "{{ srcconfig.hyprgraphics.src_path }}"
|
|
src_gitrepo: "{{ srcconfig.hyprgraphics.gitrepo }}"
|
|
src_version: "{{ hyprgraphics.vers }}"
|
|
ansible.builtin.include_tasks:
|
|
file: helpers/git.yml
|
|
|
|
- name: CMake build and install {{ pkg }}
|
|
vars:
|
|
do_become: true
|
|
src_path: "{{ srcconfig.hyprgraphics.src_path }}"
|
|
configure: "{{ srcconfig.hyprgraphics.configure }}"
|
|
build_creates: "{{ srcconfig.hyprgraphics.build_creates }}"
|
|
build: "{{ srcconfig.hyprgraphics.build }}"
|
|
install_creates: "{{ srcconfig.hyprgraphics.install_creates }}"
|
|
install: "{{ srcconfig.hyprcursor.install }}"
|
|
ansible.builtin.include_tasks:
|
|
file: helpers/cmake_build.yml
|