fix multiple source install bugs

This commit is contained in:
Matthew Stobbs
2025-03-11 20:16:22 -06:00
parent 5cfa05007c
commit 2fd82b09d5
22 changed files with 99 additions and 67 deletions

View File

@@ -12,11 +12,11 @@
- name: Check if aquamarine is installed
register: stat_aquamarine_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/lib64/libaquamarine.so"
path: "{{ hyprland.prefix }}/{{ lib_path }}/libaquamarine.so"
- name: Build and install aquamarine
when:
- stat_aquamarine_inst.stat.exists
- not stat_aquamarine_inst.stat.exists
block:
- name: Clone git repository
ansible.builtin.git:
@@ -25,6 +25,12 @@
repo: "{{ aquamarine.repo }}"
version: "{{ aquamarine.vers }}"
- name: Apply patch for alpine linux
ansible.posix.patch:
basedir: "{{ aquamarine.git_path }}"
src: aquamarine/Alpine.patch
state: present
- name: Configure aquamarine
ansible.builtin.command:
creates: "{{ aquamarine.git_path }}/build"
@@ -32,7 +38,7 @@
argv:
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
- -S
- .
@@ -57,7 +63,7 @@
- name: Install aquamarine
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/aquamarine"
creates: "{{ hyprland.prefix }}/{{ lib_path }}/libaquamarine.so"
chdir: "{{ aquamarine.git_path }}"
argv:
- cmake

View File

@@ -14,4 +14,4 @@
register: c_ghostty_build
ansible.builtin.command:
chdir: "{{ d_tempdir.path }}/ghostty"
cmd: "zig build -p {{ path.prefix }} -D{{ pkgconfig_ghostty.optimize }}"
cmd: "zig build -p {{ path.prefix }} -Doptimize={{ ghostty.optimize }}"

View File

@@ -12,7 +12,7 @@
- name: Check if hyprgraphics is installed
register: stat_hyprgraphics_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/lib64/libhyprgraphics.so"
path: "{{ hyprland.prefix }}/{{ lib_path }}/libhyprgraphics.so"
- name: Build and install hyprgraphics
when:

View File

@@ -12,7 +12,7 @@
- name: Check if hyprlang is installed
register: stat_hyprlang_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/lib64/libhyprlang.so"
path: "{{ hyprland.prefix }}/{{ lib_path }}/libhyprlang.so"
- name: Build and install hyprlang
when:

View File

@@ -12,7 +12,7 @@
- name: Check if hyprutils is installed
register: stat_hyprutils_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/lib64/libhyprutils.so"
path: "{{ hyprland.prefix }}/{{ lib_path }}/libhyprutils.so"
- name: Build and install hyprutils
when:

View File

@@ -4,8 +4,8 @@
ansible.builtin.git:
depth: 1
dest: "{{ d_tempdir.path }}/neovim"
repo: "{{ pkgconfig_neovim.git_repo }}"
version: "{{ pkgconfig_neovim.version }}"
repo: "{{ neovim.git_repo }}"
version: "{{ neovim.version }}"
- name: Build and install neovim
become: "{{ ext_become }}"

View File

@@ -12,7 +12,7 @@
- name: Check if sdbus-cpp-2 is installed
register: stat_sdbus_cpp_2_inst
ansible.builtin.stat:
path: "{{ sdbus_cpp_2.prefix }}/lib64/libsdbus-c++.so"
path: "{{ sdbus_cpp_2.prefix }}/{{ lib_path }}/libsdbus-c++.so"
- name: Build and install sdbus-cpp-2
when:
@@ -58,7 +58,7 @@
- name: Install sdbus_cpp_2
become: true
ansible.builtin.command:
creates: "{{ sdbus_cpp_2.prefix }}/lib64/libsdbus-c++.so"
creates: "{{ sdbus_cpp_2.prefix }}/{{ lib_path }}/libsdbus-c++.so"
chdir: "{{ sdbus_cpp_2.git_path }}"
argv:
- cmake