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

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