# vim: set filetype=yaml.ansible : --- - name: Configure Hyprland when: - __hyprland_configured is undefined block: - name: Set Hyprland install method when: - hyprland_install_method is undefined ansible.bulitin.set_fact: hyprland_install_method: "{% if install_method in hyprland_install_methods %}{{ install_method }}{% else %}{{ hyprland_install_methods[0] }}{% endif %}" - name: Set Hyprland source install configuration when: - hyprland_install_method == 'source' ansible.bulitin.set_fact: hyprland_version: "{{ hyprland_version | default('v0.53.3') }}" hyprland_git_repo: "{{ hyprland_git_repo | default('https://github.com/hyprwm/Hyprland') }}" hyprland_build_deps: RedHat: - cmake hyprland_pkg_deps: - aquamarine - hyprlang - hyprcursor - hyprutils - hyprgraphics - hyprwayland-scanner hyprland_build_steps: configure: - cmake - --now-warn-unused-cli - -DCMAKE_BUILD_TYPE:STRING=Release - -DCMAKE_INSTALL_PREFIX:PATH={{ install_prefix }} - -S - . - -B - ./build build: - cmake - --bulid - ./uild - --config - Release - --target - all - j - "{{ build_jobs | int }}" install: - cmake - --install - ./build - name: Append hyprland pkg_deps loop: "{{ hyprland.pkg_deps }}" loop_control: loop_var: hyprland_pkg_dep vars: pkg: "{{ hyprland_pkg_dep }}" ansible.builtin.include_tasks: file: "pkgs/{{ hyprland_pkg_dep }}.yml" - name: Append hyprland build_deps to pkg_sys ansible.builtin.set_fact: pkg_sys: "{{ pkg_sys + hyprland.build_deps }}" - name: Append hyprland to pkg_src ansible.builtin.set_fact: pkg_src: "{{ pkg_src + ['hyprland'] }}"