fix multiple source install bugs
This commit is contained in:
13
files/aquamarine/Alpine.patch
Normal file
13
files/aquamarine/Alpine.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 6cdb340..954de21 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -60,7 +60,7 @@ target_include_directories(
|
||||
PRIVATE "./src" "./src/include" "./protocols" "${CMAKE_BINARY_DIR}")
|
||||
set_target_properties(aquamarine PROPERTIES VERSION ${AQUAMARINE_VERSION}
|
||||
SOVERSION 6)
|
||||
-target_link_libraries(aquamarine OpenGL::EGL OpenGL::OpenGL PkgConfig::deps)
|
||||
+target_link_libraries(aquamarine OpenGL::EGL OpenGL::GL PkgConfig::deps)
|
||||
|
||||
check_include_file("sys/timerfd.h" HAS_TIMERFD)
|
||||
pkg_check_modules(epoll IMPORTED_TARGET epoll-shim)
|
||||
@@ -13,7 +13,9 @@
|
||||
deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
|
||||
vers: "{{ pkgconfig.ghostty.version }}"
|
||||
pkg: "{{ pkgconfig.ghostty[ghostty.method] }}"
|
||||
repo: "{{ pkgconfig.ghostty.git_repo }}"
|
||||
build_deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
|
||||
optimize: "{{ pkgconfig.ghostty.optimize }}"
|
||||
|
||||
- name: Set ghostty config for appimage install
|
||||
when:
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
method: "{{ neovim.method }}"
|
||||
vers: "v{{ pkgconfig.neovim.version }}"
|
||||
pkgs: "{{ pkgconfig.neovim.pkgs[ansible_distribution] | default(pkgconfig.neovim.pkgs.default) }}"
|
||||
git_repo: "{{ pkgconfig.neovim.git_repo }}"
|
||||
|
||||
- name: Set neovim config for appimage install
|
||||
when:
|
||||
|
||||
@@ -19,6 +19,13 @@
|
||||
pkg_snap: [] # snpacraft.io packages
|
||||
pipx_exec: "/usr/bin/pipx"
|
||||
sys_pkg_become: true # Linux package managers require sudo access
|
||||
lib_path: lib64
|
||||
|
||||
- name: Set alpine linux specific facts
|
||||
when:
|
||||
- ansible_os_family == 'Alpine'
|
||||
ansible.builtin.set_fact:
|
||||
lib_path: lib
|
||||
|
||||
- name: Set rpm dist if RedHat based
|
||||
when:
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
# create all the facts used throughout the role, but shouldn't be touched
|
||||
# by the user
|
||||
- name: Create temporary directory for downloads
|
||||
ansible.builtin.tempfile:
|
||||
state: directory
|
||||
prefix: ansible_role_package.
|
||||
register: d_tempdir
|
||||
ansible.builtin.file:
|
||||
path: /tmp/ansible_role_package
|
||||
state: directory
|
||||
|
||||
- name: Set installation facts
|
||||
ansible.builtin.include_tasks:
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
- aquamarine_configured is undefined
|
||||
block:
|
||||
- name: Load aquamarine config
|
||||
when:
|
||||
- aquamarine is undefined
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/aquamarine.yml
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -24,11 +24,12 @@ aquamarine:
|
||||
- libinput-dev
|
||||
- libseat-dev
|
||||
- mesa-gbm
|
||||
- mesa-dev
|
||||
- wayland-dev
|
||||
- wayland-protocols
|
||||
build_installed_files:
|
||||
- lib64/libaquamarine.so.0.7.2
|
||||
- lib64/libaquamarine.so.6
|
||||
- lib64/libaquamarine.so
|
||||
- "{{ lib_path }}/libaquamarine.so.0.7.2"
|
||||
- "{{ lib_path }}libaquamarine.so.6"
|
||||
- "{{ lib_path }}/libaquamarine.so"
|
||||
- include/aquamarine
|
||||
- lib64/pkgconfig/aquamarine.pc
|
||||
- "{{ lib_path }}/pkgconfig/aquamarine.pc"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
ghostty:
|
||||
version: 1.1.2+1
|
||||
version: v1.1.2
|
||||
optimize: ReleaseFast
|
||||
git_repo: https://github.com/ghostty-org/ghostty
|
||||
build_deps:
|
||||
Debian:
|
||||
- libgtk-4-dev
|
||||
@@ -11,6 +12,9 @@ ghostty:
|
||||
Alpine:
|
||||
- gtk4.0-dev
|
||||
- libadwaita-dev
|
||||
- pkgconf
|
||||
- ncurses
|
||||
- blueprint-compiler
|
||||
Darwin: []
|
||||
archmap:
|
||||
arm64: aarch64
|
||||
|
||||
@@ -15,10 +15,10 @@ hyprcursor:
|
||||
- librsvg-dev
|
||||
- tomlplusplus-dev
|
||||
build_installed_files:
|
||||
- lib64/libhyprcursor.so.0.1.11
|
||||
- lib64/libhyprcursor.so.0
|
||||
- lib64/libhyprcursor.so
|
||||
- "{{ lib_path }}/libhyprcursor.so.0.1.11"
|
||||
- "{{ lib_path }}/libhyprcursor.so.0"
|
||||
- "{{ lib_path }}/libhyprcursor.so"
|
||||
- include/hyprcursor.hpp
|
||||
- bin/hyprcursor-util
|
||||
- include/hyprcursor
|
||||
- lib64/pkgconfig/hyprcursor.pc
|
||||
- "{{ lib_path }}/pkgconfig/hyprcursor.pc"
|
||||
|
||||
@@ -25,8 +25,8 @@ hyprgraphics:
|
||||
- file
|
||||
- libspng-dev
|
||||
build_installed_files:
|
||||
- lib64/libhyprgraphics.so.0.1.2
|
||||
- lib64/libhyprgraphics.so.0
|
||||
- lib64/libhyprgraphics.so
|
||||
- "{{ lib_path }}/libhyprgraphics.so.0.1.2"
|
||||
- "{{ lib_path }}/libhyprgraphics.so.0"
|
||||
- "{{ lib_path }}/libhyprgraphics.so"
|
||||
- include/hyprgraphics
|
||||
- lib64/pkgconfig/hyprgraphics.pc
|
||||
- "{{ lib_path }}/pkgconfig/hyprgraphics.pc"
|
||||
|
||||
@@ -6,12 +6,12 @@ hyprlang:
|
||||
RedHat: []
|
||||
Alpine: []
|
||||
build_installed_files:
|
||||
- lib64/libhyprlang.so.0.6.0
|
||||
- lib64/libhyprlang.so.2
|
||||
- lib64/libhyprlang.so
|
||||
- "{{ lib_path }}/libhyprlang.so.0.6.0"
|
||||
- "{{ lib_path }}/libhyprlang.so.2"
|
||||
- "{{ lib_path }}/libhyprlang.so"
|
||||
- include/hyprlang.hpp
|
||||
- lib64/libhyprlang.so.0.6.0
|
||||
- lib64/libhyprlang.so.2
|
||||
- lib64/libhyprlang.so
|
||||
- "{{ lib_path }}/libhyprlang.so.0.6.0"
|
||||
- "{{ lib_path }}/libhyprlang.so.2"
|
||||
- "{{ lib_path }}/libhyprlang.so"
|
||||
- include/hyprlang.hpp
|
||||
- lib64/pkgconfig/hyprlang.pc
|
||||
- "{{ lib_path }}/pkgconfig/hyprlang.pc"
|
||||
|
||||
@@ -7,8 +7,8 @@ hyprutils:
|
||||
Alpine:
|
||||
- pixman-dev
|
||||
build_installed_files:
|
||||
- lib64/libhyprutils.so.0.5.1
|
||||
- lib64/libhyprutils.so.4
|
||||
- lib64/libhyprutils.so
|
||||
- "{{ lib_path }}/libhyprutils.so.0.5.1"
|
||||
- "{{ lib_path }}/libhyprutils.so.4"
|
||||
- "{{ lib_path }}/libhyprutils.so"
|
||||
- include/hyprutils
|
||||
- lib64/pkgconfig/hyprutils.pc
|
||||
- "{{ lib_path }}/pkgconfig/hyprutils.pc"
|
||||
|
||||
@@ -8,5 +8,5 @@ hyprwayland_scanner:
|
||||
- pugixml-dev
|
||||
build_installed_files:
|
||||
- bin/hyprwayland-scanner
|
||||
- lib64/pkgconfig/hyprwayland-scanner.pc
|
||||
- lib64/cmake/hyprwayland-scanner
|
||||
- "{{ lib_path }}/pkgconfig/hyprwayland-scanner.pc"
|
||||
- "{{ lib_path }}/cmake/hyprwayland-scanner"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
neovim:
|
||||
version: 0.10.4
|
||||
version: nightly
|
||||
git_repo: https://github.com/neovim/neovim
|
||||
appimage:
|
||||
base_url: https://github.com/neovim/neovim/releases/download
|
||||
|
||||
@@ -8,38 +8,38 @@ sdbus_cpp_2:
|
||||
Alpine:
|
||||
- elogind-dev
|
||||
build_installed_files:
|
||||
- share/doc/sdbus-c++/sdbus-c++-class-diagram.png
|
||||
- share/doc/sdbus-c++/sdbus-c++-class-diagram.uml
|
||||
- share/doc/sdbus-c++/systemd-dbus-config.md
|
||||
- share/doc/sdbus-c++/using-sdbus-c++.md
|
||||
- lib64/libsdbus-c++.so.2.0.0
|
||||
- lib64/libsdbus-c++.so.2
|
||||
- lib64/libsdbus-c++.so
|
||||
- "{{ lib_path }}/cmake/sdbus-c++/sdbus-c++-config-version.cmake"
|
||||
- "{{ lib_path }}/cmake/sdbus-c++/sdbus-c++-config.cmake"
|
||||
- "{{ lib_path }}/cmake/sdbus-c++/sdbus-c++-targets-release.cmake"
|
||||
- "{{ lib_path }}/cmake/sdbus-c++/sdbus-c++-targets.cmake"
|
||||
- "{{ lib_path }}/libsdbus-c++.so"
|
||||
- "{{ lib_path }}/libsdbus-c++.so.2"
|
||||
- "{{ lib_path }}/libsdbus-c++.so.2.0.0"
|
||||
- "{{ lib_path }}/pkgconfig/sdbus-c++.pc"
|
||||
- include/sdbus-c++/AdaptorInterfaces.h
|
||||
- include/sdbus-c++/ConvenienceApiClasses.h
|
||||
- include/sdbus-c++/ConvenienceApiClasses.inl
|
||||
- include/sdbus-c++/VTableItems.h
|
||||
- include/sdbus-c++/VTableItems.inl
|
||||
- include/sdbus-c++/Error.h
|
||||
- include/sdbus-c++/Flags.h
|
||||
- include/sdbus-c++/IConnection.h
|
||||
- include/sdbus-c++/AdaptorInterfaces.h
|
||||
- include/sdbus-c++/ProxyInterfaces.h
|
||||
- include/sdbus-c++/StandardInterfaces.h
|
||||
- include/sdbus-c++/IObject.h
|
||||
- include/sdbus-c++/IProxy.h
|
||||
- include/sdbus-c++/Message.h
|
||||
- include/sdbus-c++/MethodResult.h
|
||||
- include/sdbus-c++/Types.h
|
||||
- include/sdbus-c++/ProxyInterfaces.h
|
||||
- include/sdbus-c++/StandardInterfaces.h
|
||||
- include/sdbus-c++/TypeTraits.h
|
||||
- include/sdbus-c++/Flags.h
|
||||
- include/sdbus-c++/Types.h
|
||||
- include/sdbus-c++/VTableItems.h
|
||||
- include/sdbus-c++/VTableItems.inl
|
||||
- include/sdbus-c++/sdbus-c++.h
|
||||
- lib64/cmake/sdbus-c++/sdbus-c++-targets.cmake
|
||||
- lib64/cmake/sdbus-c++/sdbus-c++-targets-release.cmake
|
||||
- lib64/cmake/sdbus-c++/sdbus-c++-config.cmake
|
||||
- lib64/cmake/sdbus-c++/sdbus-c++-config-version.cmake
|
||||
- lib64/pkgconfig/sdbus-c++.pc
|
||||
- share/doc/sdbus-c++/README
|
||||
- share/doc/sdbus-c++/README.md
|
||||
- share/doc/sdbus-c++/NEWS
|
||||
- share/doc/sdbus-c++/AUTHORS
|
||||
- share/doc/sdbus-c++/COPYING
|
||||
- share/doc/sdbus-c++/ChangeLog
|
||||
- share/doc/sdbus-c++/AUTHORS
|
||||
- share/doc/sdbus-c++/NEWS
|
||||
- share/doc/sdbus-c++/README
|
||||
- share/doc/sdbus-c++/README.md
|
||||
- share/doc/sdbus-c++/sdbus-c++-class-diagram.png
|
||||
- share/doc/sdbus-c++/sdbus-c++-class-diagram.uml
|
||||
- share/doc/sdbus-c++/systemd-dbus-config.md
|
||||
- share/doc/sdbus-c++/using-sdbus-c++.md
|
||||
|
||||
Reference in New Issue
Block a user