add uwsm package

This commit is contained in:
Matthew Stobbs
2025-02-28 13:46:45 -07:00
parent b6d0880668
commit 6365e266f4
4 changed files with 58 additions and 0 deletions

7
tasks/config/uwsm.yml Normal file
View File

@@ -0,0 +1,7 @@
- name: Set uwsm config
ansible.builtin.set_fact:
uwsm:
vers: "{{ pkgconfig.uwsm.version }}"
repo: "{{ pkgconfig.uwsm.repo }}"
build_deps: "{{ pkgconfig.uwsm.build_deps[ansible_os_family] }}"
deps: "{{ pkgconfig.uwsm.deps[ansible_os_family] }}"

4
tasks/pkgs/uwsm.yml Normal file
View File

@@ -0,0 +1,4 @@
- name: Append to pkg_src
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + uwsm.build_deps + uswm.deps }}"
pkg_src: "{{ pkg_src + ['uwsm'] }}"

30
tasks/src/uwsm.yml Normal file
View File

@@ -0,0 +1,30 @@
- name: Clone git repository
ansible.builtin.git:
depth: 1
dest: "{{ d_tempdir.path }}/uwsm"
repo: "{{ uwsm.repo }}"
version: "v{{ uwsm.vers }}"
- name: Build uwsm
ansible.builtin.command:
creates: "{{ d_tempdir.path }}/uwsm/build"
chdir: "{{ d_tempdir.path }}/uwsm"
cmd:
- meson
- setup
- --prefix={{ path.prefix }}
- -Duuctl=enabled
- -Dfumon=enabled
- -Duwsm-app=enabled
- build
- name: Install uwsm
become: "{{ ext_become }}"
ansible.builtin.command:
creates: "{{ path.bin }}/uwsm"
chdir: "{{ d_tempdir.path }}/uwsm"
cmd:
- meson
- install
- -C
- build