adding Alpine specific installations

This commit is contained in:
Matthew Stobbs
2025-03-10 14:53:36 -06:00
parent aff4fddfb4
commit 51d97dd18f
32 changed files with 178 additions and 38 deletions

13
tasks/archive/packer.yml Normal file
View File

@@ -0,0 +1,13 @@
- name: Download packer archive
ansible.builtin.get_url:
dest: "{{ d_tempdir.path }}/{{ packer.archive.file }}"
url: "{{ packer.archive.url }}/{{ packer.archive.file }}"
decompress: false
mode: '0644'
- name: Extract packer archive
become: "{{ ext_become }}"
ansible.builtin.unarchive:
dest: "{{ path.archive }}/packer"
src: "{{ d_tempdir.path }}/{{ packer.archive.file }}"
remote_src: true

View File

@@ -3,7 +3,7 @@
- name: Set alacritty configuration
ansible.builtin.set_fact:
alacritty:
deps: "{{ pkgconfig.alacritty[ansible_os_family].build_deps }}"
deps: "{{ pkgconfig.alacritty.build_deps[ansible_os_family] }}"
vers: "{{ pkgconfig.alacritty.version }}"
cask: "{{ pkgconfig.alacritty.cask | default(omit) }}"
locked: true

View File

@@ -1,4 +1,4 @@
- name: Set fd config
ansible.builtin.set_fact:
fd:
pkgs: "{{ pkgconfig.fd.pkgs[ansible_system] }}"
pkgs: "{{ pkgconfig.fd.pkgs[ansible_os_family] }}"

View File

@@ -13,6 +13,7 @@
deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
vers: "{{ pkgconfig.ghostty.version }}"
pkg: "{{ pkgconfig.ghostty[ghostty.method] }}"
build_deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
- name: Set ghostty config for appimage install
when:

View File

@@ -3,4 +3,4 @@
- name: Set git config
ansible.builtin.set_fact:
git:
pkgs: "{{ pkgconfig.git.pkgs[ansible_system] }}"
pkgs: "{{ pkgconfig.git.pkgs[ansible_os_family] }}"

View File

@@ -3,6 +3,6 @@
hyprpolkitagent:
vers: "{{ pkgconfig.hyprpolkitagent.version }}"
repo: "{{ pkgconfig.hyprpolkitagent.repo }}"
build_deps: "{{ pkgconfig.hyprpolkitagent.build_deps }}"
build_deps: "{{ pkgconfig.hyprpolkitagent.build_deps[ansible_os_family] }}"
installed_files: "{{ pkgconfig.hyprpolkitagent.build_installed_files }}"
git_path: "{{ d_tempdir.path }}/hyprpolkitagent"

View File

@@ -2,3 +2,6 @@
ansible.builtin.set_fact:
packer:
pkgs: "{{ pkgconfig.packer.pkgs[ansible_system] }}"
archive:
file: "packer_{{ pkgconfig.packer.version }}_linux_amd64.zip"
url: "{{ pkgconfig.packer.baseurl }}/packer/{{ pkgconfig.packer.version }}"

View File

@@ -12,12 +12,15 @@
when:
- ansible_system == 'Linux'
block:
- name: Append alacritty to pkg_sys and pkg_cargo
- name: Append alacritty build_deps to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + alacritty.build_deps }}"
- name: Append alacritty to pkg_cargo
notify:
- Depend cargo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + alacritty.deps }}"
pkg_cargo: "{{ pkg_cargo + [alacritty] }}"
- name: Append alacritty to pkg_cask

View File

@@ -15,14 +15,14 @@
block:
- name: Append ghostty build deps to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ghostty.deps }}"
pkg_sys: "{{ pkg_sys + ghostty.build_deps }}"
- name: Append ghostty to pkg_src
notify:
- Depend zig
changed_when: true
ansible.builtin.set_fact:
pkg_src: "{{ pkg_src + ['ghostty'] }}"
pkg_src: "{{ pkg_src + [ghostty.pkg] }}"
- name: Append ghostty to pkg_appimage
when:
@@ -42,13 +42,13 @@
- Depend terra repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['ghostty'] }}"
pkg_sys: "{{ pkg_sys + [ghostty.pkg] }}"
- name: Append ghostty to pkg_cask
when:
- ghostty.method == 'brew'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['ghostty'] }}"
pkg_cask: "{{ pkg_cask + [ghostty.pkg] }}"
- name: Set ghostty_configured
ansible.builtin.set_fact:

View File

@@ -17,12 +17,19 @@
- name: Append packer to pkg_sys
when:
- ansible_system == 'Linux'
- ansible_os_family != 'Alpine'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + packer.pkgs }}"
- name: Append packer to pkg_archive
when:
- ansible_os_family == 'Alpine'
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['packer'] }}"
- name: Set packer_configured
ansible.builtin.set_fact:
packer_configured: true

View File

@@ -3,16 +3,16 @@
- name: Add uwsm
when:
- uwsm_configured is undefined
- ansible_os_family != 'Alpine'
- ansible_os_family != 'Darwin'
block:
- name: Load uwsm config
when:
- uwsm is undefined
ansible.builtin.include_tasks:
file: config/uwsm.yml
- name: Append uwsm build_deps to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + uwsm.build_deps + uswm.deps }}"
pkg_sys: "{{ pkg_sys + uwsm.build_deps + uwsm.deps }}"
- name: Append uwsm to pkg_src
ansible.builtin.set_fact:

View File

@@ -1,21 +1,28 @@
alacritty:
version: 0.15.1
RedHat:
build_deps:
RedHat:
- cmake
- freetype-devel
- fontconfig-devel
- freetype-devel
- g++
- libxcb-devel
- libxkbcommon-devel
- g++
Debian:
build_deps:
- cmake
- pkg-config
- libfreetype6-dev
- libfontconfig1-dev
- libfreetype6-dev
- libxcb-xfixes0-dev
- libxkbcommon-dev
- pkg-config
- python3
Alpine:
- cmake
- fontconfig-dev
- freetype-dev
- g++
- libxcb-dev
- libxkbcommon-dev
- pkgconf
cask:
- alacritty

View File

@@ -6,15 +6,26 @@ aquamarine:
- hyprutils
build_deps:
RedHat:
- libseat-devel
- hwdata-devel
- libdisplay-info-devel
- libdrm-devel
- libinput-devel
- libseat-devel
- mesa-libgbm-devel
- systemd-devel
- wayland-devel
- wayland-protocols-devel
- libdrm-devel
- mesa-libgbm-devel
- libdisplay-info-devel
- systemd-devel
- hwdata-devel
Alpine:
- build-base
- elogind-dev
- hwdata-dev
- libdisplay-info-dev
- libdrm-dev
- libinput-dev
- libseat-dev
- mesa-gbm
- wayland-dev
- wayland-protocols
build_installed_files:
- lib64/libaquamarine.so.0.7.2
- lib64/libaquamarine.so.6

View File

@@ -10,5 +10,6 @@ bitwarden:
brew: bitwarden
method:
Fedora: flatpak
Alpine: flatpak
Ubuntu: snap
MacOSX: brew

View File

@@ -9,4 +9,6 @@ broot:
- libxcb-xfixes0-dev
RedHat:
- libxcb
Alpine:
- libxcb-dev
Darwin: []

View File

@@ -5,6 +5,8 @@ carapace:
- carapace-bin
Darwin:
- carapace
Alpine:
- carapace
repo:
RedHat:
name: carapace-yum
@@ -14,3 +16,4 @@ carapace:
repo: "deb [trusted=yes] https://apt.fury.io/rsteube/ /"
name: carapace
Darwin: {}
Alpine: {}

View File

@@ -6,3 +6,5 @@ clangd:
- clangd-12
Darwin:
- llvm
Alpine:
- clang19

View File

@@ -2,5 +2,9 @@ fd:
pkgs:
Darwin:
- fd
Linux:
RedHat:
- fd-find
Debian:
- fd-find
Alpine:
- fd

View File

@@ -8,6 +8,9 @@ ghostty:
RedHat:
- gtk4-devel
- libadwaita-devel
Alpine:
- gtk4.0-dev
- libadwaita-dev
Darwin: []
archmap:
arm64: aarch64
@@ -19,7 +22,10 @@ ghostty:
- ghostty
sys:
- ghostty
src:
- ghostty
methods:
default: appimage
Alpine: src
Fedora: sys
MacOSX: cask

View File

@@ -5,8 +5,17 @@ git:
- git-delta
- git-extras
- git-lfs
Linux:
RedHat:
- git
- git-delta
- git-email
- git-lfs
Debian:
- git
- git-delta
- git-email
- git-lfs
Alpine:
- git
- git-email
- git-lfs

View File

@@ -9,6 +9,11 @@ hyprcursor:
- libzip-devel
- librsvg2-devel
- tomlplusplus-devel
Alpine:
- cairo-dev
- libzip-dev
- librsvg-dev
- tomlpluplus-dev
build_installed_files:
- lib64/libhyprcursor.so.0.1.11
- lib64/libhyprcursor.so.0

View File

@@ -15,6 +15,15 @@ hyprgraphics:
- file-devel
- file-libs
- libspng-devel
Alpine:
- pixman-dev
- cairo-dev
- libjpeg-turbo-dev
- libwebp-dev
- libjxl-dev
- file-dev
- file
- libspng-dev
build_installed_files:
- lib64/libhyprgraphics.so.0.1.2
- lib64/libhyprgraphics.so.0

View File

@@ -42,8 +42,36 @@ hyprland:
- xcb-util-errors-devel
- xcb-util-renderutil-devel
- xcb-util-wm-devel
- xcb-util-wm-devel
- xorg-x11-server-Xwayland-devel
Alpine:
- build-base
- cairo-dev
- cmake
- dunst
- elogind-dev
- glslang-dev
- libdrm-dev
- libinput-dev
- libseat-dev
- libuuid
- libxcb-dev
- libxcursor-dev
- libxkbcommon-dev
- mesa-gbm
- meson
- pango-dev
- pixman-dev
- qt5-qtwayland-dev
- qt6-qtwayland-dev
- re2-dev
- tomlplusplus-dev
- vulkan-loader-dev
- wayland-dev
- wayland-protocols
- xcb-util-errors-dev
- xcb-util-renderutil-dev
- xcb-util-wm-dev
- xwayland-dev
build_installed_files:
- share/wayland-sessions/hyprland-uwsm.desktop
- bin/hyprctl

View File

@@ -5,6 +5,9 @@ hyprland_protocols:
RedHat:
- meson
- ninja-build
Alpine:
- meson
- ninja-build
build_installed_files:
- share/hyprland-protocols/protocols
- share/hyprland-protocols/protocols/hyprland-ctm-control-v1.xml

View File

@@ -4,6 +4,7 @@ hyprlang:
pkg_deps: []
build_deps:
RedHat: []
Alpine: []
build_installed_files:
- lib64/libhyprlang.so.0.6.0
- lib64/libhyprlang.so.2

View File

@@ -5,6 +5,9 @@ hyprpolkitagent:
RedHat:
- polkit-devel
- polkit-qt6-1-devel
Alpine:
- polkit-dev
- polkit-qt6
build_installed_files:
- libexec/hyprpolkitagent
- lib/systemd/user/hyprpolkitagent.service

View File

@@ -4,6 +4,8 @@ hyprutils:
build_deps:
RedHat:
- pixman-devel
Alpine:
- pixman-dev
build_installed_files:
- lib64/libhyprutils.so.0.5.1
- lib64/libhyprutils.so.4

View File

@@ -4,6 +4,8 @@ hyprwayland_scanner:
build_deps:
RedHat:
- pugixml-devel
Alpine:
- pugixml-dev
build_installed_files:
- bin/hyprwayland-scanner
- lib64/pkgconfig/hyprwayland-scanner.pc

View File

@@ -12,12 +12,17 @@ neovide:
- "@Development Tools"
- "@Development Libraries"
Debian:
- fontconfig-devel
- freetype-devel
- fontconfig-dev
- freetype-dev
- libX11-xcb
- libX11-devel
- libX11-dev
- libstdc++-static
- libstdc++-devel
- "@Development Tools"
- "@Development Libraries"
- libstdc++-dev
Alpine:
- fontconfig-dev
- freetype-dev
- xcb-dev
- libx11-dev
- gcompat
- libstdc++-dev
Darwin: []

View File

@@ -4,3 +4,6 @@ packer:
- packer
Darwin:
- packer
version: 1.12.0
archive:
baseurl: https://releases.hashicorp.com

View File

@@ -5,6 +5,8 @@ sdbus_cpp_2:
build_deps:
RedHat:
- systemd-devel
Alpine:
- elogind-dev
build_installed_files:
- share/doc/sdbus-c++/sdbus-c++-class-diagram.png
- share/doc/sdbus-c++/sdbus-c++-class-diagram.uml

View File

@@ -7,16 +7,21 @@ xdg_desktop_portal_hyprland:
- hyprlang
- hyprutils
- hyprwayland_scanner
- hyprland
build_deps:
RedHat:
- libdrm-devel
- mesa-libgbm-devel
- pipewire-devel
- pipewire-libs
- sdbus-cpp-devel
- wayland-devel
- wayland-protocols-devel
Alpine:
- libdrm-dev
- mesa-gbm
- pipewire-dev
- pipewire-libs
- wayland-dev
- wayland-protocols
build_installed_files:
- bin/hyprland-share-picker
- lib/xdg-desktop-portal-hyprland