more hyprland fixes
This commit is contained in:
58
tasks/src/hyprgraphics.yml
Normal file
58
tasks/src/hyprgraphics.yml
Normal file
@@ -0,0 +1,58 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hyprgraphics.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ path.prefix }}/{{ file }}"
|
||||
|
||||
- name: Build and install hyprgraphics
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hyprgraphics.git_path }}"
|
||||
repo: "{{ hyprgraphics.repo }}"
|
||||
version: "{{ hyprgraphics.vers }}"
|
||||
|
||||
- name: Configure hyprgraphics
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprgraphics.git_path }}/build"
|
||||
chdir: "{{ hyprgraphics.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hyprgraphics
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprgraphics.git_path }}/build/libhyprgraphics.so"
|
||||
chdir: "{{ hyprgraphics.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprgraphics
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprgraphics"
|
||||
chdir: "{{ hyprgraphics.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
Reference in New Issue
Block a user