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