update ghostty
- refactor remaiing source packages to new standard
This commit is contained in:
@@ -1,24 +1,47 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Ensure directories exist
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ pkgconfig_neovide.install_prefix }}/{{ _dir }}"
|
||||
become: true
|
||||
loop:
|
||||
- share/icons
|
||||
- share/applications
|
||||
- name: Remove existing install {{ pkg }}
|
||||
when:
|
||||
- neovide.clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ neovide.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: _dir
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ path.prefix }}/{{ file }}"
|
||||
|
||||
- name: Copy neovide icon
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: neovide/icon.png
|
||||
dest: "{{ pkgconfig_neovide.install_prefix }}/share/icons/neovide.png"
|
||||
- name: Check for installed {{ pkg }}
|
||||
register: stat_neovide_inst
|
||||
ansible.builtin.stat:
|
||||
path: "{{ path.bin }}/neovide"
|
||||
|
||||
- name: Copy neovide.desktop
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: neovide/neovide.desktop
|
||||
dest: "{{ pkgconfig_neovide.install_prefix }}/share/applications/neovide.desktop"
|
||||
- name: Build and install {{ pkg }}
|
||||
when:
|
||||
- not state_neovide_inst.stat.exists
|
||||
block:
|
||||
- name: Ensure directories exist
|
||||
become: true
|
||||
loop:
|
||||
- share/icons
|
||||
- share/applications
|
||||
loop_control:
|
||||
loop_var: _dir
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ path.prefix }}/{{ _dir }}"
|
||||
mode: '0755'
|
||||
|
||||
- name: Copy neovide icon
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: neovide/icon.png
|
||||
dest: "{{ path.prefix }}/share/icons/neovide.png"
|
||||
mode: '0644'
|
||||
|
||||
- name: Copy neovide.desktop
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: neovide/neovide.desktop
|
||||
dest: "{{ path.prefix }}/share/applications/neovide.desktop"
|
||||
mode: '0644'
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Clean existing install
|
||||
become: "{{ ext_become }}"
|
||||
when:
|
||||
- neovim.installed_files is defined
|
||||
- neovim.clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ neovim.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
@@ -28,7 +28,7 @@
|
||||
repo: "{{ neovim.git_repo }}"
|
||||
version: "{{ neovim.vers }}"
|
||||
recursive: true
|
||||
|
||||
|
||||
- name: Build and install neovim
|
||||
become: "{{ ext_become }}"
|
||||
community.general.make:
|
||||
|
||||
@@ -1,30 +1,52 @@
|
||||
- name: Clone git repository {{ pkg }}
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ d_tempdir.path }}/uwsm"
|
||||
repo: "{{ uwsm.repo }}"
|
||||
version: "v{{ uwsm.vers }}"
|
||||
|
||||
- name: Build {{ pkg }}
|
||||
ansible.builtin.command:
|
||||
creates: "{{ d_tempdir.path }}/uwsm/build"
|
||||
chdir: "{{ d_tempdir.path }}/uwsm"
|
||||
argv:
|
||||
- meson
|
||||
- setup
|
||||
- --prefix={{ hyprland.prefix }}
|
||||
- -Duuctl=enabled
|
||||
- -Dfumon=enabled
|
||||
- -Duwsm-app=enabled
|
||||
- build
|
||||
|
||||
- name: Install {{ pkg }}
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Remove existing install {{ pkg }}
|
||||
when:
|
||||
- uwsm.clean
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprland.prefix }}/bin/uwsm"
|
||||
chdir: "{{ d_tempdir.path }}/uwsm"
|
||||
argv:
|
||||
- meson
|
||||
- install
|
||||
- -C
|
||||
- build
|
||||
loop: "{{ uwsm.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ file }}"
|
||||
|
||||
- name: Check for installed {{ pkg }}
|
||||
register: stat_uwsm_inst
|
||||
ansible.builtin.stat:
|
||||
path: "{{ uwsm.prefix }}"
|
||||
|
||||
- name: Build and install {{ uwsm }}
|
||||
when:
|
||||
- not stat_uwsm_inst.stat.exists
|
||||
block:
|
||||
- name: Clone git repository {{ pkg }}
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ d_tempdir.path }}/uwsm"
|
||||
repo: "{{ uwsm.repo }}"
|
||||
version: "v{{ uwsm.vers }}"
|
||||
|
||||
- name: Build {{ pkg }}
|
||||
ansible.builtin.command:
|
||||
creates: "{{ d_tempdir.path }}/uwsm/build"
|
||||
chdir: "{{ d_tempdir.path }}/uwsm"
|
||||
argv:
|
||||
- meson
|
||||
- setup
|
||||
- --prefix={{ uwsm.prefix }}
|
||||
- -Duuctl=enabled
|
||||
- -Dfumon=enabled
|
||||
- -Duwsm-app=enabled
|
||||
- build
|
||||
|
||||
- name: Install {{ pkg }}
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ uwsm.prefix }}/bin/uwsm"
|
||||
chdir: "{{ d_tempdir.path }}/uwsm"
|
||||
argv:
|
||||
- meson
|
||||
- install
|
||||
- -C
|
||||
- build
|
||||
|
||||
Reference in New Issue
Block a user