adding hyprland src install
This commit is contained in:
9
tasks/config/aquamarine.yml
Normal file
9
tasks/config/aquamarine.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: Set aquamarine config
|
||||
ansible.builtin.set_fact:
|
||||
aquamarine:
|
||||
vers: "{{ pkgconfig.aquamarine.version }}"
|
||||
repo: "{{ pkgconfig.aquamarine.repo }}"
|
||||
git_path: "{{ d_tempdir.path }}/aquamarine"
|
||||
pkg_deps: "{{ pkgconfig.aquamarine.pkg_deps }}"
|
||||
installed_files: "{{ pkgconfig.aquamarine.build_installed_files }}"
|
||||
bin: aquamarine
|
||||
6
tasks/config/hyprwayland_scanner.yml
Normal file
6
tasks/config/hyprwayland_scanner.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- name: Set hyperwayland-scanner config
|
||||
ansible.builtin.set_fact:
|
||||
hyprwayland_scanner:
|
||||
vers: "{{ pkgconfig.hyprwayland_scanner.version }}"
|
||||
repo: "{{ pkgconfig.hyprwayland_scanner.repo }}"
|
||||
build_deps: "{{ pkgconfig.hyprwayland_scanner.build_deps[ansible_os_family] }}"
|
||||
12
tasks/pkgs/aquamarine.yml
Normal file
12
tasks/pkgs/aquamarine.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
- name: Ensure pkg_deps are added
|
||||
loop: aquamarine.pkg_deps
|
||||
loop_control:
|
||||
loop_var: pkg_dep
|
||||
vars:
|
||||
pkg: "{{ pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: addpkg.yml
|
||||
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['aquamarine'] }}"
|
||||
6
tasks/pkgs/hyprwayland_scanner.yml
Normal file
6
tasks/pkgs/hyprwayland_scanner.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- name: Append to pkg_sys and pkg_src
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprwayland_scanner.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprwayland_scanner'] }}"
|
||||
50
tasks/src/aquamarine.yml
Normal file
50
tasks/src/aquamarine.yml
Normal 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
|
||||
50
tasks/src/hyprwayland_scanner.yml
Normal file
50
tasks/src/hyprwayland_scanner.yml
Normal 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
|
||||
Reference in New Issue
Block a user