added more hyprland packages
This commit is contained in:
@@ -7,3 +7,4 @@
|
||||
pkg_deps: "{{ pkgconfig.aquamarine.pkg_deps }}"
|
||||
installed_files: "{{ pkgconfig.aquamarine.build_installed_files }}"
|
||||
bin: aquamarine
|
||||
build_deps: "{{ pkgconfig.aquamarine.build_deps[ansible_os_family] }}"
|
||||
|
||||
8
tasks/config/hyprutils.yml
Normal file
8
tasks/config/hyprutils.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- name: Set hyprutils config
|
||||
ansible.builtin.set_fact:
|
||||
hyprutils:
|
||||
vers: "{{ pkgconfig.hyprutils.version }}"
|
||||
repo: "{{ pkgconfig.hyprutils.repo }}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprutils"
|
||||
installed_files: "{{ pkgconfig.hyprutils.build_installed_files }}"
|
||||
build_deps: "{{ pkgconfig.hyprutils.build_deps[ansible_os_family] }}"
|
||||
@@ -7,6 +7,7 @@
|
||||
ansible.builtin.include_tasks:
|
||||
file: addpkg.yml
|
||||
|
||||
- name: Append to pkg_src
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + aquamarine.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['aquamarine'] }}"
|
||||
|
||||
4
tasks/pkgs/hyprutils.yml
Normal file
4
tasks/pkgs/hyprutils.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprutils.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprutils'] }}"
|
||||
@@ -18,28 +18,36 @@
|
||||
repo: "{{ aquamarine.repo }}"
|
||||
version: "{{ aquamarine.vers }}"
|
||||
|
||||
- name: Configure hyprwayland-scanner
|
||||
- name: Configure aquamarine
|
||||
ansible.builtin.command:
|
||||
creates: "{{ aquamarine.git_path }}/build"
|
||||
chdir: "{{ aquamarine.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- build
|
||||
- ./build
|
||||
|
||||
- name: Build hyprwayland-scanner
|
||||
- name: Build aquamarine
|
||||
ansible.builtin.command:
|
||||
creates: "{{ aquamarine.git_path }}/build/"
|
||||
chdir: "{{ aquamarine.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprwayland-scanner
|
||||
- name: Install aquamarine
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/aquamarine"
|
||||
@@ -47,4 +55,4 @@
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- build
|
||||
- ./build
|
||||
|
||||
58
tasks/src/hyprutils.yml
Normal file
58
tasks/src/hyprutils.yml
Normal file
@@ -0,0 +1,58 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: hyprutils.installed_files
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ path.prefix }}/{{ file }}"
|
||||
|
||||
- name: Build and install hyprutils
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hyprutils.git_path }}"
|
||||
repo: "{{ hyprutils.repo }}"
|
||||
version: "{{ hyprutils.vers }}"
|
||||
|
||||
- name: Configure hyprutils
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprutils.git_path }}/build"
|
||||
chdir: "{{ hyprutils.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hyprutils
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprutils.git_path }}/build/hyprutils.pc"
|
||||
chdir: "{{ hyprutils.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprutils
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprutils"
|
||||
chdir: "{{ hyprutils.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
Reference in New Issue
Block a user