made hyprland prefix /usr/local
This commit is contained in:
@@ -10,6 +10,6 @@
|
|||||||
- name: Extract pulumi archive
|
- name: Extract pulumi archive
|
||||||
become: "{{ ext_become }}"
|
become: "{{ ext_become }}"
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
dest: "{{ path.archive }}/pulumi"
|
dest: "{{ path.archive }}"
|
||||||
src: "{{ d_tempdir.path }}/{{ pulumi.archive }}"
|
src: "{{ d_tempdir.path }}/{{ pulumi.archive }}"
|
||||||
remote_src: true
|
remote_src: true
|
||||||
|
|||||||
@@ -7,3 +7,4 @@
|
|||||||
build_deps: "{{ pkgconfig.hyprland.build_deps[ansible_os_family] }}"
|
build_deps: "{{ pkgconfig.hyprland.build_deps[ansible_os_family] }}"
|
||||||
installed_files: "{{ pkgconfig.hyprland.build_installed_files }}"
|
installed_files: "{{ pkgconfig.hyprland.build_installed_files }}"
|
||||||
git_path: "{{ d_tempdir.path }}/Hyprland"
|
git_path: "{{ d_tempdir.path }}/Hyprland"
|
||||||
|
prefix: "/usr/local"
|
||||||
|
|||||||
@@ -7,9 +7,16 @@
|
|||||||
loop_var: file
|
loop_var: file
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: absent
|
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
|
- name: Build and install aquamarine
|
||||||
|
when:
|
||||||
|
- stat_aquamarine_inst.stat.exists
|
||||||
block:
|
block:
|
||||||
- name: Clone git repository
|
- name: Clone git repository
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
@@ -26,7 +33,7 @@
|
|||||||
- cmake
|
- cmake
|
||||||
- --no-warn-unused-cli
|
- --no-warn-unused-cli
|
||||||
- DCMAKE_BUILD_TYPE=Release
|
- DCMAKE_BUILD_TYPE=Release
|
||||||
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
|
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
|
||||||
- -S
|
- -S
|
||||||
- .
|
- .
|
||||||
- -B
|
- -B
|
||||||
|
|||||||
@@ -7,9 +7,16 @@
|
|||||||
loop_var: file
|
loop_var: file
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: absent
|
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
|
- name: Build and install hyprcursor
|
||||||
|
when:
|
||||||
|
- not stat_hyprcursor_inst.stat.exists
|
||||||
block:
|
block:
|
||||||
- name: Clone git repository
|
- name: Clone git repository
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
@@ -26,7 +33,7 @@
|
|||||||
- cmake
|
- cmake
|
||||||
- --no-warn-unused-cli
|
- --no-warn-unused-cli
|
||||||
- DCMAKE_BUILD_TYPE=Release
|
- DCMAKE_BUILD_TYPE=Release
|
||||||
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
|
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
|
||||||
- -S
|
- -S
|
||||||
- .
|
- .
|
||||||
- -B
|
- -B
|
||||||
|
|||||||
@@ -7,9 +7,16 @@
|
|||||||
loop_var: file
|
loop_var: file
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: absent
|
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
|
- name: Build and install hyprgraphics
|
||||||
|
when:
|
||||||
|
- not stat_hyprgraphics_inst.stat.exists
|
||||||
block:
|
block:
|
||||||
- name: Clone git repository
|
- name: Clone git repository
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
@@ -26,7 +33,7 @@
|
|||||||
- cmake
|
- cmake
|
||||||
- --no-warn-unused-cli
|
- --no-warn-unused-cli
|
||||||
- DCMAKE_BUILD_TYPE=Release
|
- DCMAKE_BUILD_TYPE=Release
|
||||||
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
|
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
|
||||||
- -S
|
- -S
|
||||||
- .
|
- .
|
||||||
- -B
|
- -B
|
||||||
|
|||||||
@@ -7,12 +7,12 @@
|
|||||||
loop_var: file
|
loop_var: file
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: absent
|
state: absent
|
||||||
path: "{{ path.prefix }}/{{ file }}"
|
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||||
|
|
||||||
- name: Check if hyprland is installed
|
- name: Check if hyprland is installed
|
||||||
register: stat_hyprland_bin
|
register: stat_hyprland_bin
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: "{{ path.bin }}/Hyprland"
|
path: "{{ hyprland.prefix }}/bin/Hyprland"
|
||||||
|
|
||||||
- name: Build and install hyprland
|
- name: Build and install hyprland
|
||||||
when:
|
when:
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
- cmake
|
- cmake
|
||||||
- --no-warn-unused-cli
|
- --no-warn-unused-cli
|
||||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ path.prefix }}
|
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||||
- -S
|
- -S
|
||||||
- .
|
- .
|
||||||
- -B
|
- -B
|
||||||
|
|||||||
@@ -7,9 +7,16 @@
|
|||||||
loop_var: file
|
loop_var: file
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: absent
|
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
|
- name: Build and install hyprlang
|
||||||
|
when:
|
||||||
|
- not stat_hyprlang_inst.stat.exists
|
||||||
block:
|
block:
|
||||||
- name: Clone git repository
|
- name: Clone git repository
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
@@ -26,7 +33,7 @@
|
|||||||
- cmake
|
- cmake
|
||||||
- --no-warn-unused-cli
|
- --no-warn-unused-cli
|
||||||
- DCMAKE_BUILD_TYPE=Release
|
- DCMAKE_BUILD_TYPE=Release
|
||||||
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
|
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
|
||||||
- -S
|
- -S
|
||||||
- .
|
- .
|
||||||
- -B
|
- -B
|
||||||
|
|||||||
@@ -7,9 +7,16 @@
|
|||||||
loop_var: file
|
loop_var: file
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: absent
|
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
|
- name: Build and install hyprutils
|
||||||
|
when:
|
||||||
|
- not stat_hyprutils_inst.stat.exists
|
||||||
block:
|
block:
|
||||||
- name: Clone git repository
|
- name: Clone git repository
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
@@ -26,7 +33,7 @@
|
|||||||
- cmake
|
- cmake
|
||||||
- --no-warn-unused-cli
|
- --no-warn-unused-cli
|
||||||
- DCMAKE_BUILD_TYPE=Release
|
- DCMAKE_BUILD_TYPE=Release
|
||||||
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
|
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
|
||||||
- -S
|
- -S
|
||||||
- .
|
- .
|
||||||
- -B
|
- -B
|
||||||
|
|||||||
@@ -7,9 +7,16 @@
|
|||||||
loop_var: file
|
loop_var: file
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: absent
|
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
|
- name: Build and install hyprwayland-scanner
|
||||||
|
when:
|
||||||
|
- not stat_hyprwayland_scanner_inst.stat.exists
|
||||||
block:
|
block:
|
||||||
- name: Clone git repository
|
- name: Clone git repository
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
@@ -24,7 +31,7 @@
|
|||||||
chdir: "{{ d_tempdir.path }}/hyprwayland-scanner"
|
chdir: "{{ d_tempdir.path }}/hyprwayland-scanner"
|
||||||
argv:
|
argv:
|
||||||
- cmake
|
- cmake
|
||||||
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
|
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
|
||||||
- -B
|
- -B
|
||||||
- build
|
- build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user