Working on source packages

Signed-off-by: Matthew Stobbs <matthew@stobbs.ca>
This commit is contained in:
Matthew Stobbs
2026-02-02 02:35:16 -07:00
parent fa78c0aa0c
commit c613a29ce4
14 changed files with 470 additions and 396 deletions

View File

@@ -1,55 +1,51 @@
# vim: set filetype=yaml.ansible :
# variables used in ansible_role_package
---
default_flatpak_method: system
default_flatpak_remotes:
- name: flathub
url: https://dl.flathub.org/repo/flathub.flatpakrepo
default_flatpak_remote_name: flathub
default_install_method: system
default_install_prefix: /usr/local
default_store_path: HOME/.cache/ansible_role_package
default_path_appimage: /usr/local/appimage
default_path_archive: /usr/local/archive
default_path_bin: /usr/local/bin
default_path_cargo: /usr/local/cargo
default_path_go: /usr/local/go
default_path_pipx: /usr/local/pipx
default_path_git: /usr/local/git
packages: [] # list of packages to install
extra_packages: [] # list of extra packages to add to pkg_sys
# General configuration
clean_install: false
clean_cache: false
install_become: true
install_become_user: root
install_method: system
install_prefix: /usr/local
install_prefix_mode: '0755'
install_prefix_owner: root
install_prefix_group: root
extra_ldd_paths: []
packages_extra: []
# Path suffixes for installation types. Prefixed by `default_install_prefix`
directory_appimage: appimage
directory_archive: archive
directory_bin: bin
directory_cargo: cargo
directory_go: go
directory_pipx: pipx
directory_git: git
# flatpak default configuration
flathub_remote:
name: flathub
url: https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak_default_remote: flathub
flatpak_method: system
flatpak_remotes: "{{ [flathub_remote] }}"
default_clean_source: false
# Installation paths
path_appimage: "{{ install_prefix }}/appimage"
path_archive: "{{ install_prefix }}/archive"
path_bin: "{{ install_prefix }}/bin"
path_cargo: "{{ install_prefix }}/cargo"
path_git: "{{ store_path }}/git"
path_go: "{{ install_prefix }}/go"
path_pipx: "{{ install_prefix }}/pipx"
store_path: "{{ ansible_user_dir }}/.cache/ansible_role_package"
## Extra config that usually will not need to be changed
hyprgitbase: https://github.com/hyprwm
# System paths
_pkgconfig_force_rebuild: false
# neovim configuration
_pkgversion_neovim: master
_gitbranch_neovim: master
# Empty variables that need to exist
flatpak_remotes: null # flatpak remotes to add instead of default
flatpak_remote_name: null # the source of flatpak installations
flatpak_method: null # the method to use when installing flatpak
install_method: null # the way to install packages (system, source, etc)
install_prefix: null # the path prefix to install files
store_path: null # the path to store archives, git repos and appimages, etc.
path_appimage: null
path_archive: null
path_bin: null
path_cargo: null
path_go: null
path_pipx: null
use_become: true
# empty lists that must be defined
pkg_archive: [] # packages installed via prebuilt archive
pkg_cargo: [] # rust packages from cargo using `cargo install`
pkg_cargo_build: [] # rust packages using `cargo build` before install
pkg_go: [] # go applications
pkg_npm: [] # npm commands
pkg_pipx: [] # pipx packages
pkg_sys_pip: [] # system pip packages
pkg_src: [] # packages built from source
pkg_sys: [] # system package manager packages
pkg_zig: [] # zig packages
pkg_sh: [] # use shell commands to install a package
pkg_appimage: [] # appimages to install
pkg_flatpak: [] # flatpak packages to install
pkg_snap: [] # snpacraft.io packages