updated src builds

This commit is contained in:
Matthew Stobbs
2025-03-16 20:17:28 -06:00
parent 43f539253f
commit bfd3afd353
20 changed files with 128 additions and 128 deletions

View File

@@ -1,4 +1,4 @@
- name: Remove existing install
- name: Remove existing install {{ pkg }}
when:
- hyprland_clean
become: "{{ ext_become }}"
@@ -9,16 +9,16 @@
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check if hyprlock is installed
- name: Check for installed {{ pkg }}
register: stat_hyprlock_bin
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/hyprlock"
- name: Build and install hyprlock
- name: Build and install {{ pkg }}
when:
- not stat_hyprlock_bin.stat.exists
block:
- name: Clone git repository
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
depth: 1
dest: "{{ hyprlock.git_path }}"
@@ -26,14 +26,14 @@
repo: "{{ hyprlock.repo }}"
version: "{{ hyprlock.vers }}"
- name: Apply cmakelists patch
- name: Apply cmakelists patch {{ pkg }}
ansible.posix.patch:
basedir: "{{ hyprlock.git_path }}"
src: hyprlock/cmakelists.patch
state: present
strip: 1
- name: Configure hyprlock
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprlock.git_path }}/build"
chdir: "{{ hyprlock.git_path }}"
@@ -47,7 +47,7 @@
- -B
- ./build
- name: Build hyprlock
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprlock.git_path }}/build/hyprlock"
chdir: "{{ hyprlock.git_path }}"
@@ -62,7 +62,7 @@
- -j
- "{{ ansible_processor_nproc|int }}"
- name: Install hyprlock
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/hyprlock"