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