add the rest of the hypr tools
This commit is contained in:
@@ -1,22 +1,31 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Download pulumi archive
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_tempdir.path }}/{{ pulumi.archive }}"
|
||||
url: "{{ pulumi.dlurl }}"
|
||||
decompress: false
|
||||
mode: '0644'
|
||||
|
||||
- name: Extract pulumi archive
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ path.archive }}"
|
||||
src: "{{ d_tempdir.path }}/{{ pulumi.archive }}"
|
||||
remote_src: true
|
||||
|
||||
- name: Link pulumi executable
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ path.archive }}/pulumi/pulumi"
|
||||
- name: Check if pulumi is installed
|
||||
register: stat_pulumi_inst
|
||||
ansible.builtin.stat:
|
||||
path: "{{ path.bin }}/pulumi"
|
||||
|
||||
- name: Install pulumi if not installed
|
||||
when:
|
||||
- not stat_pulumi_inst.stat.exists
|
||||
block:
|
||||
- name: Download pulumi archive
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_tempdir.path }}/{{ pulumi.archive }}"
|
||||
url: "{{ pulumi.dlurl }}"
|
||||
decompress: false
|
||||
mode: '0644'
|
||||
|
||||
- name: Extract pulumi archive
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ path.archive }}"
|
||||
src: "{{ d_tempdir.path }}/{{ pulumi.archive }}"
|
||||
remote_src: true
|
||||
|
||||
- name: Link pulumi executable
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ path.archive }}/pulumi/pulumi"
|
||||
path: "{{ path.bin }}/pulumi"
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
name: "{{ pkg.name | default(pkg) }}"
|
||||
version: "{{ pkg.vers | default(omit) }}"
|
||||
path: "{{ paths.cargo | default(omit) }}"
|
||||
locked: "{{ pkg.locked | default(true) }}"
|
||||
locked: "{{ pkg.locked | default(omit) }}"
|
||||
|
||||
9
tasks/config/hypridle.yml
Normal file
9
tasks/config/hypridle.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: Set hypridle config
|
||||
ansible.builtin.set_fact:
|
||||
hypridle:
|
||||
vers: "{{ pkgconfig.hypridle.version }}"
|
||||
repo: "{{ pkgconfig.hypridle.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hypridle.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hypridle.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hypridle.build_installed_files}}"
|
||||
git_path: "{{ d_tempdir.path }}/hypridle"
|
||||
9
tasks/config/hyprland_qt_support.yml
Normal file
9
tasks/config/hyprland_qt_support.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: Set hyprland_qt_support config
|
||||
ansible.builtin.set_fact:
|
||||
hyprland_qt_support:
|
||||
vers: "{{ pkgconfig.hyprland_qt_support.version }}"
|
||||
repo: "{{ pkgconfig.hyprland_qt_support.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hyprland_qt_support.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hyprland_qt_support.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprland_qt_support.build_installed_files}}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprland_qt_support"
|
||||
9
tasks/config/hyprland_qtutils.yml
Normal file
9
tasks/config/hyprland_qtutils.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: Set hyprland_qtutils config
|
||||
ansible.builtin.set_fact:
|
||||
hyprland_qtutils:
|
||||
vers: "{{ pkgconfig.hyprland_qtutils.version }}"
|
||||
repo: "{{ pkgconfig.hyprland_qtutils.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hyprland_qtutils.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hyprland_qtutils.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprland_qtutils.build_installed_files}}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprland_qtutils"
|
||||
9
tasks/config/hyprlock.yml
Normal file
9
tasks/config/hyprlock.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: Set hyprlock config
|
||||
ansible.builtin.set_fact:
|
||||
hyprlock:
|
||||
vers: "{{ pkgconfig.hyprlock.version }}"
|
||||
repo: "{{ pkgconfig.hyprlock.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hyprlock.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hyprlock.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprlock.build_installed_files}}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprlock"
|
||||
9
tasks/config/hyprpaper.yml
Normal file
9
tasks/config/hyprpaper.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: Set hyprpaper config
|
||||
ansible.builtin.set_fact:
|
||||
hyprpaper:
|
||||
vers: "{{ pkgconfig.hyprpaper.version }}"
|
||||
repo: "{{ pkgconfig.hyprpaper.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hyprpaper.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hyprpaper.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprpaper.build_installed_files}}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprpaper"
|
||||
9
tasks/config/hyprpicker.yml
Normal file
9
tasks/config/hyprpicker.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: Set hyprpicker config
|
||||
ansible.builtin.set_fact:
|
||||
hyprpicker:
|
||||
vers: "{{ pkgconfig.hyprpicker.version }}"
|
||||
repo: "{{ pkgconfig.hyprpicker.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hyprpicker.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hyprpicker.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprpicker.build_installed_files}}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprpicker"
|
||||
@@ -10,8 +10,10 @@
|
||||
pkgs: "{{ pkgconfig.terraform.pkgs[ansible_system] }}"
|
||||
|
||||
- name: Set terraform archive config
|
||||
when:
|
||||
- terraform.method == 'archive'
|
||||
ansible.builtin.set_fact:
|
||||
terraform:
|
||||
method: "{{ terraform.method }}"
|
||||
url: "{{ pkgconfig.terraform.baseurl }}/terraform/{{ pkgconfig.terraform.version }}"
|
||||
url: "{{ pkgconfig.terraform.archive.baseurl }}/terraform/{{ pkgconfig.terraform.version }}"
|
||||
file: "terraform_{{ pkgconfig.terraform.version }}_linux_amd64.zip"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
ansible.builtin.file:
|
||||
path: /tmp/ansible_role_package
|
||||
state: directory
|
||||
mode: '0777'
|
||||
|
||||
- name: Set installation facts
|
||||
ansible.builtin.include_tasks:
|
||||
@@ -39,6 +40,12 @@
|
||||
- name: Flush handlers to ensure dependencies are installed
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
- name: Add needed packages for Fedora
|
||||
when:
|
||||
- ansible_distribution == 'Fedora'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['python3-paramiko'] }}"
|
||||
|
||||
- name: Add needed MacOS packages
|
||||
when:
|
||||
- ansible_distribution == 'MacOSX'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Install npm {{ pkg }}
|
||||
become: "{{ ext_become }}"
|
||||
become: true
|
||||
community.general.npm:
|
||||
global: true
|
||||
name: "{{ pkg }}"
|
||||
|
||||
30
tasks/pkgs/hypridle.yml
Normal file
30
tasks/pkgs/hypridle.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add hypridle
|
||||
when:
|
||||
- hypridle_configured is undefined
|
||||
block:
|
||||
- name: Load hypridle config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hypridle.yml
|
||||
|
||||
- name: Append hypridle pkg_deps
|
||||
loop: "{{ hypridle.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hypridle_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hypridle_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hypridle_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hypridle build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hypridle.build_deps }}"
|
||||
|
||||
- name: Append hypridle to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hypridle'] }}"
|
||||
|
||||
- name: Set hypridle_configured
|
||||
ansible.builtin.set_fact:
|
||||
hypridle_configured: true
|
||||
30
tasks/pkgs/hyprland_qt_support.yml
Normal file
30
tasks/pkgs/hyprland_qt_support.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add hyprland_qt_support
|
||||
when:
|
||||
- hyprland_qt_support_configured is undefined
|
||||
block:
|
||||
- name: Load hyprland_qt_support config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprland_qt_support.yml
|
||||
|
||||
- name: Append hyprland_qt_support pkg_deps
|
||||
loop: "{{ hyprland_qt_support.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprland_qt_support_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprland_qt_support_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprland_qt_support_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hyprland_qt_support build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprland_qt_support.build_deps }}"
|
||||
|
||||
- name: Append hyprland_qt_support to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprland_qt_support'] }}"
|
||||
|
||||
- name: Set hyprland_qt_support_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyprland_qt_support_configured: true
|
||||
30
tasks/pkgs/hyprland_qtutils.yml
Normal file
30
tasks/pkgs/hyprland_qtutils.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add hyprland_qtutils
|
||||
when:
|
||||
- hyprland_qtutils_configured is undefined
|
||||
block:
|
||||
- name: Load hyprland_qtutils config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprland_qtutils.yml
|
||||
|
||||
- name: Append hyprland_qtutils pkg_deps
|
||||
loop: "{{ hyprland_qtutils.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprland_qtutils_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprland_qtutils_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprland_qtutils_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hyprland_qtutils build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprland_qtutils.build_deps }}"
|
||||
|
||||
- name: Append hyprland_qtutils to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprland_qtutils'] }}"
|
||||
|
||||
- name: Set hyprland_qtutils_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyprland_qtutils_configured: true
|
||||
30
tasks/pkgs/hyprlock.yml
Normal file
30
tasks/pkgs/hyprlock.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add hyprlock
|
||||
when:
|
||||
- hyprlock_configured is undefined
|
||||
block:
|
||||
- name: Load hyprlock config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprlock.yml
|
||||
|
||||
- name: Append hyprlock pkg_deps
|
||||
loop: "{{ hyprlock.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprlock_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprlock_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprlock_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hyprlock build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprlock.build_deps }}"
|
||||
|
||||
- name: Append hyprlock to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprlock'] }}"
|
||||
|
||||
- name: Set hyprlock_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyprlock_configured: true
|
||||
30
tasks/pkgs/hyprpaper.yml
Normal file
30
tasks/pkgs/hyprpaper.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add hyprpaper
|
||||
when:
|
||||
- hyprpaper_configured is undefined
|
||||
block:
|
||||
- name: Load hyprpaper config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprpaper.yml
|
||||
|
||||
- name: Append hyprpaper pkg_deps
|
||||
loop: "{{ hyprpaper.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprpaper_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprpaper_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprpaper_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hyprpaper build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprpaper.build_deps }}"
|
||||
|
||||
- name: Append hyprpaper to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprpaper'] }}"
|
||||
|
||||
- name: Set hyprpaper_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyprpaper_configured: true
|
||||
30
tasks/pkgs/hyprpicker.yml
Normal file
30
tasks/pkgs/hyprpicker.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add hyprpicker
|
||||
when:
|
||||
- hyprpicker_configured is undefined
|
||||
block:
|
||||
- name: Load hyprpicker config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprpicker.yml
|
||||
|
||||
- name: Append hyprpicker pkg_deps
|
||||
loop: "{{ hyprpicker.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprpicker_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprpicker_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprpicker_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hyprpicker build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprpicker.build_deps }}"
|
||||
|
||||
- name: Append hyprpicker to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprpicker'] }}"
|
||||
|
||||
- name: Set hyprpicker_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyprpicker_configured: true
|
||||
@@ -26,6 +26,8 @@
|
||||
version: "{{ aquamarine.vers }}"
|
||||
|
||||
- name: Apply patch for alpine linux
|
||||
when:
|
||||
- ansible_os_family == 'Alpine'
|
||||
ansible.posix.patch:
|
||||
basedir: "{{ aquamarine.git_path }}"
|
||||
src: aquamarine/Alpine.patch
|
||||
|
||||
72
tasks/src/hypridle.yml
Normal file
72
tasks/src/hypridle.yml
Normal file
@@ -0,0 +1,72 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hypridle.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if hypridle is installed
|
||||
register: stat_hypridle_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hypridle"
|
||||
|
||||
- name: Build and install hypridle
|
||||
when:
|
||||
- not stat_hypridle_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hypridle.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ hypridle.repo }}"
|
||||
version: "{{ hypridle.vers }}"
|
||||
|
||||
- name: Apply cmakelists patch
|
||||
ansible.posix.patch:
|
||||
basedir: "{{ hypridle.git_path }}"
|
||||
src: hypridle/cmakelists.patch
|
||||
state: present
|
||||
|
||||
- name: Configure hypridle
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hypridle.git_path }}/build"
|
||||
chdir: "{{ hypridle.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hypridle
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hypridle.git_path }}/build/hypridle"
|
||||
chdir: "{{ hypridle.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hypridle
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hypridle"
|
||||
chdir: "{{ hypridle.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
67
tasks/src/hyprland_qt_support.yml
Normal file
67
tasks/src/hyprland_qt_support.yml
Normal file
@@ -0,0 +1,67 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hyprland_qt_support.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if hyprland_qt_support is installed
|
||||
register: stat_hyprland_qt_support_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hyprland_qt_support"
|
||||
|
||||
- name: Build and install hyprland_qt_support
|
||||
when:
|
||||
- not stat_hyprland_qt_support_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hyprland_qt_support.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ hyprland_qt_support.repo }}"
|
||||
version: "{{ hyprland_qt_support.vers }}"
|
||||
|
||||
- name: Configure hyprland_qt_support
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprland_qt_support.git_path }}/build"
|
||||
chdir: "{{ hyprland_qt_support.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||
- -DINSTALL_QML_PREFIX=/lib/qt6/qml
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hyprland_qt_support
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprland_qt_support.git_path }}/build/hyprland_qt_support"
|
||||
chdir: "{{ hyprland_qt_support.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprland_qt_support
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprland_qt_support"
|
||||
chdir: "{{ hyprland_qt_support.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
66
tasks/src/hyprland_qtutils.yml
Normal file
66
tasks/src/hyprland_qtutils.yml
Normal file
@@ -0,0 +1,66 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hyprland_qtutils.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if hyprland_qtutils is installed
|
||||
register: stat_hyprland_qtutils_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hyprland_qtutils"
|
||||
|
||||
- name: Build and install hyprland_qtutils
|
||||
when:
|
||||
- not stat_hyprland_qtutils_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hyprland_qtutils.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ hyprland_qtutils.repo }}"
|
||||
version: "{{ hyprland_qtutils.vers }}"
|
||||
|
||||
- name: Configure hyprland_qtutils
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprland_qtutils.git_path }}/build"
|
||||
chdir: "{{ hyprland_qtutils.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hyprland_qtutils
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprland_qtutils.git_path }}/build/hyprland_qtutils"
|
||||
chdir: "{{ hyprland_qtutils.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprland_qtutils
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprland_qtutils"
|
||||
chdir: "{{ hyprland_qtutils.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
72
tasks/src/hyprlock.yml
Normal file
72
tasks/src/hyprlock.yml
Normal file
@@ -0,0 +1,72 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hyprlock.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if hyprlock is installed
|
||||
register: stat_hyprlock_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hyprlock"
|
||||
|
||||
- name: Build and install hyprlock
|
||||
when:
|
||||
- not stat_hyprlock_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hyprlock.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ hyprlock.repo }}"
|
||||
version: "{{ hyprlock.vers }}"
|
||||
|
||||
- name: Apply cmakelists patch
|
||||
ansible.posix.patch:
|
||||
basedir: "{{ hyprlock.git_path }}"
|
||||
src: hyprlock/cmakelists.patch
|
||||
state: present
|
||||
|
||||
- name: Configure hyprlock
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprlock.git_path }}/build"
|
||||
chdir: "{{ hyprlock.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hyprlock
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprlock.git_path }}/build/hyprlock"
|
||||
chdir: "{{ hyprlock.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprlock
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprlock"
|
||||
chdir: "{{ hyprlock.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
66
tasks/src/hyprpaper.yml
Normal file
66
tasks/src/hyprpaper.yml
Normal file
@@ -0,0 +1,66 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hyprpaper.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if hyprpaper is installed
|
||||
register: stat_hyprpaper_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hyprpaper"
|
||||
|
||||
- name: Build and install hyprpaper
|
||||
when:
|
||||
- not stat_hyprpaper_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hyprpaper.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ hyprpaper.repo }}"
|
||||
version: "{{ hyprpaper.vers }}"
|
||||
|
||||
- name: Configure hyprpaper
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprpaper.git_path }}/build"
|
||||
chdir: "{{ hyprpaper.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hyprpaper
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprpaper.git_path }}/build/hyprpaper"
|
||||
chdir: "{{ hyprpaper.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprpaper
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprpaper"
|
||||
chdir: "{{ hyprpaper.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
66
tasks/src/hyprpicker.yml
Normal file
66
tasks/src/hyprpicker.yml
Normal file
@@ -0,0 +1,66 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hyprpicker.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if hyprpicker is installed
|
||||
register: stat_hyprpicker_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hyprpicker"
|
||||
|
||||
- name: Build and install hyprpicker
|
||||
when:
|
||||
- not stat_hyprpicker_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hyprpicker.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ hyprpicker.repo }}"
|
||||
version: "{{ hyprpicker.vers }}"
|
||||
|
||||
- name: Configure hyprpicker
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprpicker.git_path }}/build"
|
||||
chdir: "{{ hyprpicker.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hyprpicker
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprpicker.git_path }}/build/hyprpicker"
|
||||
chdir: "{{ hyprpicker.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprpicker
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprpicker"
|
||||
chdir: "{{ hyprpicker.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
Reference in New Issue
Block a user