made hyprland prefix /usr/local

This commit is contained in:
Matthew Stobbs
2025-03-02 11:46:39 -07:00
parent e9db8789dd
commit b10162a578
9 changed files with 59 additions and 16 deletions

View File

@@ -7,9 +7,16 @@
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check if aquamarine is installed
register: stat_aquamarine_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/lib64/libaquamarine.so"
- name: Build and install aquamarine
when:
- stat_aquamarine_inst.stat.exists
block:
- name: Clone git repository
ansible.builtin.git:
@@ -26,7 +33,7 @@
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
- -S
- .
- -B

View File

@@ -7,9 +7,16 @@
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check if hyprcursor is installed
register: stat_hyprcursor_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/hyprcursor-util"
- name: Build and install hyprcursor
when:
- not stat_hyprcursor_inst.stat.exists
block:
- name: Clone git repository
ansible.builtin.git:
@@ -26,7 +33,7 @@
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
- -S
- .
- -B

View File

@@ -7,9 +7,16 @@
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check if hyprgraphics is installed
register: stat_hyprgraphics_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/lib64/libhyprgraphics.so"
- name: Build and install hyprgraphics
when:
- not stat_hyprgraphics_inst.stat.exists
block:
- name: Clone git repository
ansible.builtin.git:
@@ -26,7 +33,7 @@
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
- -S
- .
- -B

View File

@@ -7,12 +7,12 @@
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check if hyprland is installed
register: stat_hyprland_bin
ansible.builtin.stat:
path: "{{ path.bin }}/Hyprland"
path: "{{ hyprland.prefix }}/bin/Hyprland"
- name: Build and install hyprland
when:
@@ -34,7 +34,7 @@
- cmake
- --no-warn-unused-cli
- -DCMAKE_BUILD_TYPE:STRING=Release
- -DCMAKE_INSTALL_PREFIX:PATH={{ path.prefix }}
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
- -S
- .
- -B

View File

@@ -7,9 +7,16 @@
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check if hyprlang is installed
register: stat_hyprlang_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/lib64/libhyprlang.so"
- name: Build and install hyprlang
when:
- not stat_hyprlang_inst.stat.exists
block:
- name: Clone git repository
ansible.builtin.git:
@@ -26,7 +33,7 @@
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
- -S
- .
- -B

View File

@@ -7,9 +7,16 @@
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check if hyprutils is installed
register: stat_hyprutils_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/lib64/libhyprutils.so"
- name: Build and install hyprutils
when:
- not stat_hyprutils_inst.stat.exists
block:
- name: Clone git repository
ansible.builtin.git:
@@ -26,7 +33,7 @@
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
- -S
- .
- -B

View File

@@ -7,9 +7,16 @@
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check if hyprwayland-scanner is installed
register: stat_hyprwayland_scanner_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/hyprwayland-scanner"
- name: Build and install hyprwayland-scanner
when:
- not stat_hyprwayland_scanner_inst.stat.exists
block:
- name: Clone git repository
ansible.builtin.git:
@@ -24,7 +31,7 @@
chdir: "{{ d_tempdir.path }}/hyprwayland-scanner"
argv:
- cmake
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
- -B
- build