more hyprland fixes

This commit is contained in:
Matthew Stobbs
2025-03-02 09:44:40 -07:00
parent 1492dd0db4
commit 18fca577e7
14 changed files with 242 additions and 17 deletions

View File

@@ -2,7 +2,7 @@
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: aquamarine.installed_files
loop: "{{ aquamarine.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
@@ -34,7 +34,7 @@
- name: Build aquamarine
ansible.builtin.command:
creates: "{{ aquamarine.git_path }}/build/"
creates: "{{ aquamarine.git_path }}/build/libaquamarine.so"
chdir: "{{ aquamarine.git_path }}"
argv:
- cmake

58
tasks/src/hyprcursor.yml Normal file
View File

@@ -0,0 +1,58 @@
- name: Remove existing install
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: "{{ hyprcursor.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Build and install hyprcursor
block:
- name: Clone git repository
ansible.builtin.git:
depth: 1
dest: "{{ hyprcursor.git_path }}"
repo: "{{ hyprcursor.repo }}"
version: "{{ hyprcursor.vers }}"
- name: Configure hyprcursor
ansible.builtin.command:
creates: "{{ hyprcursor.git_path }}/build"
chdir: "{{ hyprcursor.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -S
- .
- -B
- ./build
- name: Build hyprcursor
ansible.builtin.command:
creates: "{{ hyprcursor.git_path }}/build/hyprcursor.so"
chdir: "{{ hyprcursor.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc|int }}"
- name: Install hyprcursor
become: "{{ ext_become }}"
ansible.builtin.command:
creates: "{{ path.bin }}/hyprcursor"
chdir: "{{ hyprcursor.git_path }}"
argv:
- cmake
- --install
- ./build

View 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

59
tasks/src/hyprland.yml Normal file
View File

@@ -0,0 +1,59 @@
- name: Remove existing install
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: "{{ hyprland.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Build and install hyprland
block:
- name: Clone git repository
ansible.builtin.git:
depth: 1
dest: "{{ hyprland.git_path }}"
recursive: true
repo: "{{ hyprland.repo }}"
version: "{{ hyprland.vers }}"
- name: Configure hyprland
ansible.builtin.command:
creates: "{{ hyprland.git_path }}/build"
chdir: "{{ hyprland.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE:STRING=Release
- -DCMAKE_INSTALL_PREFIX:PATH={{ path.prefix }}
- -S
- .
- -B
- ./build
- name: Build hyprland
ansible.builtin.command:
creates: "{{ hyprland.git_path }}/build/Hyprland"
chdir: "{{ hyprland.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc|int }}"
- name: Install hyprland
become: "{{ ext_become }}"
ansible.builtin.command:
creates: "{{ path.bin }}/hyprland"
chdir: "{{ hyprland.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -2,7 +2,7 @@
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: hyprlang.installed_files
loop: "{{ hyprlang.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
@@ -34,7 +34,7 @@
- name: Build hyprlang
ansible.builtin.command:
creates: "{{ hyprlang.git_path }}/build/hyprlang.pc"
creates: "{{ hyprlang.git_path }}/build/hyprlang.so"
chdir: "{{ hyprlang.git_path }}"
argv:
- cmake

View File

@@ -2,7 +2,7 @@
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: hyprutils.installed_files
loop: "{{ hyprutils.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
@@ -34,7 +34,7 @@
- name: Build hyprutils
ansible.builtin.command:
creates: "{{ hyprutils.git_path }}/build/hyprutils.pc"
creates: "{{ hyprutils.git_path }}/build/hyprutils.so"
chdir: "{{ hyprutils.git_path }}"
argv:
- cmake

View File

@@ -2,7 +2,7 @@
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: hyprwayland_scanner.installed_files
loop: "{{ hyprwayland_scanner.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file: