update ghostty

- refactor remaiing source packages to new standard
This commit is contained in:
Matthew Stobbs
2025-03-29 15:21:34 -06:00
parent 5645cc7dd6
commit 59a31858f4
9 changed files with 107 additions and 55 deletions

View File

@@ -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'