Squash merge move_to_single_file_pkgs into main

This commit is contained in:
Matthew Stobbs
2026-04-13 14:50:45 -06:00
parent ff740426c8
commit 8dc427f027
373 changed files with 3883 additions and 9963 deletions

View File

@@ -1,17 +1,55 @@
# vim: set filetype=yaml.ansible :
#
## Package: zig
## Description: zig programming language tool chain
## Version: 0.15.2
## Methods: [system, archive]
## Helpers: archive
---
- name: Add zig
- name: Set zig default facts
ansible.builtin.set_fact:
methods:
- archive
- system
version: "{{ zig_version | default('0.15.2') }}"
archive:
url: https://ziglang.org/download
- name: Configure zig
when:
- zig_configured is undefined
- "'zig' not in __configured"
block:
- name: Load zig config
ansible.builtin.include_tasks:
file: config/zig.yml
- name: Append zig to pkg_archive
- name: Set zig install method
when:
- zig_imethod is undefined
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['zig'] }}"
zig_imethod: "{{ imethod if imethod in zig.methods else zig.methods[0] }}"
- name: Set zig_configured
- name: Configure zig system install
when:
- zig_imethod == 'system'
ansible.builtin.set_fact:
zig_configured: true
pkg_sys: "{{ pkg_sys + [zig.pkgname[os_family]] }}"
- name: Configure zig archive install
when:
- zig_imethod == 'archive'
block:
- name: Configure zig archive install
ansible.builtin.set_fact:
zig_archive_install:
url: "{{ zig.archive.url }}/{{ zig.version }}/zig-{{ architecture }}-{{ system | lower }}-{{ zig.version }}.tar.xz"
extract_to: "{{ path_zig }}"
name: "zig-{{ zig.version }}.tar.xz"
links:
- from: "{{ path_archive }}/zig-{{ architecture }}-{{ system | lower }}-{{ zig.version }}/zig"
to: "{{ path_bin }}/zig"
force: true
- name: Finalise zig archive install
ansible.builtin.set_fact:
zig_install: "{{ zig_archive_install }}"
- name: Finalise zig configuration
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'zig': zig_install } ) }}"