add uwsm package
This commit is contained in:
7
tasks/config/uwsm.yml
Normal file
7
tasks/config/uwsm.yml
Normal 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
4
tasks/pkgs/uwsm.yml
Normal 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
30
tasks/src/uwsm.yml
Normal 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
|
||||
17
vars/pkgs/uwsm.yml
Normal file
17
vars/pkgs/uwsm.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
uwsm:
|
||||
version: 0.21.1
|
||||
repo: https://github.com/Vladimir-csp/uwsm.git
|
||||
build_deps:
|
||||
RedHat:
|
||||
- meson
|
||||
- python3-meson-python
|
||||
- scdoc
|
||||
- cmake
|
||||
deps:
|
||||
RedHat:
|
||||
- python3-pyxdg
|
||||
- python3-dbus
|
||||
- util-linux
|
||||
- newt
|
||||
- wofi
|
||||
- libnotify
|
||||
Reference in New Issue
Block a user