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 - name: Set alacritty configuration
ansible.builtin.set_fact: ansible.builtin.set_fact:
alacritty: alacritty:
deps: "{{ pkgconfig.alacritty[ansible_os_family].build_deps }}" deps: "{{ pkgconfig.alacritty.build_deps[ansible_os_family] }}"
vers: "{{ pkgconfig.alacritty.version }}" vers: "{{ pkgconfig.alacritty.version }}"
cask: "{{ pkgconfig.alacritty.cask | default(omit) }}" cask: "{{ pkgconfig.alacritty.cask | default(omit) }}"
locked: true locked: true

View File

@@ -1,4 +1,4 @@
- name: Set fd config - name: Set fd config
ansible.builtin.set_fact: ansible.builtin.set_fact:
fd: 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] }}" deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
vers: "{{ pkgconfig.ghostty.version }}" vers: "{{ pkgconfig.ghostty.version }}"
pkg: "{{ pkgconfig.ghostty[ghostty.method] }}" pkg: "{{ pkgconfig.ghostty[ghostty.method] }}"
build_deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
- name: Set ghostty config for appimage install - name: Set ghostty config for appimage install
when: when:

View File

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

View File

@@ -3,6 +3,6 @@
hyprpolkitagent: hyprpolkitagent:
vers: "{{ pkgconfig.hyprpolkitagent.version }}" vers: "{{ pkgconfig.hyprpolkitagent.version }}"
repo: "{{ pkgconfig.hyprpolkitagent.repo }}" 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 }}" installed_files: "{{ pkgconfig.hyprpolkitagent.build_installed_files }}"
git_path: "{{ d_tempdir.path }}/hyprpolkitagent" git_path: "{{ d_tempdir.path }}/hyprpolkitagent"

View File

@@ -2,3 +2,6 @@
ansible.builtin.set_fact: ansible.builtin.set_fact:
packer: packer:
pkgs: "{{ pkgconfig.packer.pkgs[ansible_system] }}" 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: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
block: 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: notify:
- Depend cargo - Depend cargo
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + alacritty.deps }}"
pkg_cargo: "{{ pkg_cargo + [alacritty] }}" pkg_cargo: "{{ pkg_cargo + [alacritty] }}"
- name: Append alacritty to pkg_cask - name: Append alacritty to pkg_cask

View File

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

View File

@@ -17,12 +17,19 @@
- name: Append packer to pkg_sys - name: Append packer to pkg_sys
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
- ansible_os_family != 'Alpine'
notify: notify:
- Depend hashicorp repo - Depend hashicorp repo
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + packer.pkgs }}" 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 - name: Set packer_configured
ansible.builtin.set_fact: ansible.builtin.set_fact:
packer_configured: true packer_configured: true

View File

@@ -3,16 +3,16 @@
- name: Add uwsm - name: Add uwsm
when: when:
- uwsm_configured is undefined - uwsm_configured is undefined
- ansible_os_family != 'Alpine'
- ansible_os_family != 'Darwin'
block: block:
- name: Load uwsm config - name: Load uwsm config
when:
- uwsm is undefined
ansible.builtin.include_tasks: ansible.builtin.include_tasks:
file: config/uwsm.yml file: config/uwsm.yml
- name: Append uwsm build_deps to pkg_sys - name: Append uwsm build_deps to pkg_sys
ansible.builtin.set_fact: 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 - name: Append uwsm to pkg_src
ansible.builtin.set_fact: ansible.builtin.set_fact:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -5,8 +5,17 @@ git:
- git-delta - git-delta
- git-extras - git-extras
- git-lfs - git-lfs
Linux: RedHat:
- git - git
- git-delta - git-delta
- git-email - git-email
- git-lfs - 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 - libzip-devel
- librsvg2-devel - librsvg2-devel
- tomlplusplus-devel - tomlplusplus-devel
Alpine:
- cairo-dev
- libzip-dev
- librsvg-dev
- tomlpluplus-dev
build_installed_files: build_installed_files:
- lib64/libhyprcursor.so.0.1.11 - lib64/libhyprcursor.so.0.1.11
- lib64/libhyprcursor.so.0 - lib64/libhyprcursor.so.0

View File

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

View File

@@ -42,8 +42,36 @@ hyprland:
- xcb-util-errors-devel - xcb-util-errors-devel
- xcb-util-renderutil-devel - xcb-util-renderutil-devel
- xcb-util-wm-devel - xcb-util-wm-devel
- xcb-util-wm-devel
- xorg-x11-server-Xwayland-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: build_installed_files:
- share/wayland-sessions/hyprland-uwsm.desktop - share/wayland-sessions/hyprland-uwsm.desktop
- bin/hyprctl - bin/hyprctl

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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