adding hyprland src install

This commit is contained in:
Matthew Stobbs
2025-02-28 15:57:02 -07:00
parent 6365e266f4
commit 91cdc5056c
10 changed files with 191 additions and 0 deletions

50
tasks/src/aquamarine.yml Normal file
View File

@@ -0,0 +1,50 @@
- name: Remove existing install
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: aquamarine.installed_files
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Build and install aquamarine
block:
- name: Clone git repository
ansible.builtin.git:
depth: 1
dest: "{{ aquamarine.git_path }}"
repo: "{{ aquamarine.repo }}"
version: "{{ aquamarine.vers }}"
- name: Configure hyprwayland-scanner
ansible.builtin.command:
creates: "{{ aquamarine.git_path }}/build"
chdir: "{{ aquamarine.git_path }}"
argv:
- cmake
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -B
- build
- name: Build hyprwayland-scanner
ansible.builtin.command:
creates: "{{ aquamarine.git_path }}/build/"
chdir: "{{ aquamarine.git_path }}"
argv:
- cmake
- --build
- build
- -j
- "{{ ansible_processor_nproc|int }}"
- name: Install hyprwayland-scanner
become: "{{ ext_become }}"
ansible.builtin.command:
creates: "{{ path.bin }}/aquamarine"
chdir: "{{ aquamarine.git_path }}"
argv:
- cmake
- --install
- build

View File

@@ -0,0 +1,50 @@
- name: Remove existing install
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: hyprwayland_scanner.installed_files
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Build and install hyprwayland-scanner
block:
- name: Clone git repository
ansible.builtin.git:
depth: 1
dest: "{{ d_tempdir.path }}/hyprwayland-scanner"
repo: "{{ hyprwayland_scanner.repo }}"
version: "{{ hyprwayland_scanner.vers }}"
- name: Configure hyprwayland-scanner
ansible.builtin.command:
creates: "{{ d_tempdir.path }}/hyprwayland-scanner/build"
chdir: "{{ d_tempdir.path }}/hyprwayland-scanner"
argv:
- cmake
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -B
- build
- name: Build hyprwayland-scanner
ansible.builtin.command:
creates: "{{ d_tempdir.path }}/hyprwayland-scanner/build/hyprwayland-scanner"
chdir: "{{ d_tempdir.path }}/hyprwayland-scanner"
argv:
- cmake
- --build
- build
- -j
- "{{ ansible_processor_nproc|int }}"
- name: Install hyprwayland-scanner
become: "{{ ext_become }}"
ansible.builtin.command:
creates: "{{ path.bin }}/hyprwayland-scanner"
chdir: "{{ d_tempdir.path }}/hyprwayland-scanner"
argv:
- cmake
- --install
- build