more hyprland packages

This commit is contained in:
Matthew Stobbs
2025-02-28 17:29:51 -07:00
parent 5faa2ae1f3
commit e4d32cbac1
8 changed files with 203 additions and 102 deletions

58
tasks/src/hyprlang.yml Normal file
View File

@@ -0,0 +1,58 @@
- name: Remove existing install
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: hyprlang.installed_files
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Build and install hyprlang
block:
- name: Clone git repository
ansible.builtin.git:
depth: 1
dest: "{{ hyprlang.git_path }}"
repo: "{{ hyprlang.repo }}"
version: "{{ hyprlang.vers }}"
- name: Configure hyprlang
ansible.builtin.command:
creates: "{{ hyprlang.git_path }}/build"
chdir: "{{ hyprlang.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -S
- .
- -B
- ./build
- name: Build hyprlang
ansible.builtin.command:
creates: "{{ hyprlang.git_path }}/build/hyprlang.pc"
chdir: "{{ hyprlang.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc|int }}"
- name: Install hyprlang
become: "{{ ext_become }}"
ansible.builtin.command:
creates: "{{ path.bin }}/hyprlang"
chdir: "{{ hyprlang.git_path }}"
argv:
- cmake
- --install
- ./build