more hyprland fixes

This commit is contained in:
Matthew Stobbs
2025-03-02 09:44:40 -07:00
parent 1492dd0db4
commit 18fca577e7
14 changed files with 242 additions and 17 deletions

View File

@@ -6,3 +6,4 @@
pkg_deps: "{{ pkgconfig.hyprland.pkg_deps }}" pkg_deps: "{{ pkgconfig.hyprland.pkg_deps }}"
build_deps: "{{ pkgconfig.hyprland.build_deps[ansible_os_family] }}" build_deps: "{{ pkgconfig.hyprland.build_deps[ansible_os_family] }}"
installed_files: "{{ pkgconfig.hyprland.build_installed_files }}" installed_files: "{{ pkgconfig.hyprland.build_installed_files }}"
git_path: "{{ d_tempdir.path }}/Hyprland"

View File

@@ -2,7 +2,7 @@
when: when:
- hyprland_clean - hyprland_clean
become: "{{ ext_become }}" become: "{{ ext_become }}"
loop: aquamarine.installed_files loop: "{{ aquamarine.installed_files }}"
loop_control: loop_control:
loop_var: file loop_var: file
ansible.builtin.file: ansible.builtin.file:
@@ -34,7 +34,7 @@
- name: Build aquamarine - name: Build aquamarine
ansible.builtin.command: ansible.builtin.command:
creates: "{{ aquamarine.git_path }}/build/" creates: "{{ aquamarine.git_path }}/build/libaquamarine.so"
chdir: "{{ aquamarine.git_path }}" chdir: "{{ aquamarine.git_path }}"
argv: argv:
- cmake - cmake

58
tasks/src/hyprcursor.yml Normal file
View File

@@ -0,0 +1,58 @@
- name: Remove existing install
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: "{{ hyprcursor.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Build and install hyprcursor
block:
- name: Clone git repository
ansible.builtin.git:
depth: 1
dest: "{{ hyprcursor.git_path }}"
repo: "{{ hyprcursor.repo }}"
version: "{{ hyprcursor.vers }}"
- name: Configure hyprcursor
ansible.builtin.command:
creates: "{{ hyprcursor.git_path }}/build"
chdir: "{{ hyprcursor.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -S
- .
- -B
- ./build
- name: Build hyprcursor
ansible.builtin.command:
creates: "{{ hyprcursor.git_path }}/build/hyprcursor.so"
chdir: "{{ hyprcursor.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc|int }}"
- name: Install hyprcursor
become: "{{ ext_become }}"
ansible.builtin.command:
creates: "{{ path.bin }}/hyprcursor"
chdir: "{{ hyprcursor.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -0,0 +1,58 @@
- name: Remove existing install
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: "{{ hyprgraphics.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Build and install hyprgraphics
block:
- name: Clone git repository
ansible.builtin.git:
depth: 1
dest: "{{ hyprgraphics.git_path }}"
repo: "{{ hyprgraphics.repo }}"
version: "{{ hyprgraphics.vers }}"
- name: Configure hyprgraphics
ansible.builtin.command:
creates: "{{ hyprgraphics.git_path }}/build"
chdir: "{{ hyprgraphics.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ path.prefix }}
- -S
- .
- -B
- ./build
- name: Build hyprgraphics
ansible.builtin.command:
creates: "{{ hyprgraphics.git_path }}/build/libhyprgraphics.so"
chdir: "{{ hyprgraphics.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc|int }}"
- name: Install hyprgraphics
become: "{{ ext_become }}"
ansible.builtin.command:
creates: "{{ path.bin }}/hyprgraphics"
chdir: "{{ hyprgraphics.git_path }}"
argv:
- cmake
- --install
- ./build

59
tasks/src/hyprland.yml Normal file
View File

@@ -0,0 +1,59 @@
- name: Remove existing install
when:
- hyprland_clean
become: "{{ ext_become }}"
loop: "{{ hyprland.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Build and install hyprland
block:
- name: Clone git repository
ansible.builtin.git:
depth: 1
dest: "{{ hyprland.git_path }}"
recursive: true
repo: "{{ hyprland.repo }}"
version: "{{ hyprland.vers }}"
- name: Configure hyprland
ansible.builtin.command:
creates: "{{ hyprland.git_path }}/build"
chdir: "{{ hyprland.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE:STRING=Release
- -DCMAKE_INSTALL_PREFIX:PATH={{ path.prefix }}
- -S
- .
- -B
- ./build
- name: Build hyprland
ansible.builtin.command:
creates: "{{ hyprland.git_path }}/build/Hyprland"
chdir: "{{ hyprland.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc|int }}"
- name: Install hyprland
become: "{{ ext_become }}"
ansible.builtin.command:
creates: "{{ path.bin }}/hyprland"
chdir: "{{ hyprland.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -2,7 +2,7 @@
when: when:
- hyprland_clean - hyprland_clean
become: "{{ ext_become }}" become: "{{ ext_become }}"
loop: hyprlang.installed_files loop: "{{ hyprlang.installed_files }}"
loop_control: loop_control:
loop_var: file loop_var: file
ansible.builtin.file: ansible.builtin.file:
@@ -34,7 +34,7 @@
- name: Build hyprlang - name: Build hyprlang
ansible.builtin.command: ansible.builtin.command:
creates: "{{ hyprlang.git_path }}/build/hyprlang.pc" creates: "{{ hyprlang.git_path }}/build/hyprlang.so"
chdir: "{{ hyprlang.git_path }}" chdir: "{{ hyprlang.git_path }}"
argv: argv:
- cmake - cmake

View File

@@ -2,7 +2,7 @@
when: when:
- hyprland_clean - hyprland_clean
become: "{{ ext_become }}" become: "{{ ext_become }}"
loop: hyprutils.installed_files loop: "{{ hyprutils.installed_files }}"
loop_control: loop_control:
loop_var: file loop_var: file
ansible.builtin.file: ansible.builtin.file:
@@ -34,7 +34,7 @@
- name: Build hyprutils - name: Build hyprutils
ansible.builtin.command: ansible.builtin.command:
creates: "{{ hyprutils.git_path }}/build/hyprutils.pc" creates: "{{ hyprutils.git_path }}/build/hyprutils.so"
chdir: "{{ hyprutils.git_path }}" chdir: "{{ hyprutils.git_path }}"
argv: argv:
- cmake - cmake

View File

@@ -2,7 +2,7 @@
when: when:
- hyprland_clean - hyprland_clean
become: "{{ ext_become }}" become: "{{ ext_become }}"
loop: hyprwayland_scanner.installed_files loop: "{{ hyprwayland_scanner.installed_files }}"
loop_control: loop_control:
loop_var: file loop_var: file
ansible.builtin.file: ansible.builtin.file:

View File

@@ -22,5 +22,5 @@ echo "Building container images"
for os in ${OSBUILDS[@]} for os in ${OSBUILDS[@]}
do do
echo "Building image for ${os}" echo "Building image for ${os}"
podman build --platform linux/amd64 -f Containerfile.${os} -t ${IMAGE}:${os} . podman build --platform linux/amd64 -f Containerfile.${os} -t localhost/${IMAGE}:${os} .
done done

View File

@@ -6,8 +6,6 @@ set -x
for os in ${OSBUILDS[@]} for os in ${OSBUILDS[@]}
do do
if ! podman container exists ${CONTAINER}_${os}; then podman run --rm -it -d --platform linux/amd64 --name ${CONTAINER}_${os} -p 2222:22 localhost/${IMAGE}:${os}
podman run --rm -it -d --platform linux/amd64 --name ${CONTAINER}_${os} -p 2222:22 ${IMAGE}:${os}
fi
ansible-playbook "test.yml" -i inventory.yml ansible-playbook "test.yml" -i inventory.yml
done done

View File

@@ -1,5 +1,5 @@
hyprcursor: hyprcursor:
version: version: v0.1.11
repo: "{{ hyprgitbase }}/hyprcursor" repo: "{{ hyprgitbase }}/hyprcursor"
pkg_deps: pkg_deps:
- hyprlang - hyprlang
@@ -9,4 +9,11 @@ hyprcursor:
- libzip-devel - libzip-devel
- librsvg2-devel - librsvg2-devel
- tomlplusplus-devel - tomlplusplus-devel
build_installed_files: [] build_installed_files:
- lib64/libhyprcursor.so.0.1.11
- lib64/libhyprcursor.so.0
- lib64/libhyprcursor.so
- include/hyprcursor.hpp
- bin/hyprcursor-util
- include/hyprcursor
- lib64/pkgconfig/hyprcursor.pc

View File

@@ -1,5 +1,5 @@
hyprgraphics: hyprgraphics:
version: version: v0.1.2
repo: "{{ hyprgitbase }}/hyprgraphics" repo: "{{ hyprgitbase }}/hyprgraphics"
pkg_deps: pkg_deps:
- hyprutils - hyprutils
@@ -15,4 +15,9 @@ hyprgraphics:
- file-devel - file-devel
- file-libs - file-libs
- libspng-devel - libspng-devel
build_installed_files: [] build_installed_files:
- lib64/libhyprgraphics.so.0.1.2
- lib64/libhyprgraphics.so.0
- lib64/libhyprgraphics.so
- include/hyprgraphics
- lib64/pkgconfig/hyprgraphics.pc

View File

@@ -2,6 +2,7 @@ hyprland:
version: v0.47.2 version: v0.47.2
repo: "{{ hyprgitbase }}/Hyprland" repo: "{{ hyprgitbase }}/Hyprland"
pkg_deps: pkg_deps:
- git
- hyprwayland_scanner - hyprwayland_scanner
- hyprutils - hyprutils
- hyprlang - hyprlang
@@ -18,7 +19,12 @@ hyprland:
- libglvnd-devel - libglvnd-devel
- libinput-devel - libinput-devel
- libseat-devel - libseat-devel
- libuuid-devel
- libxcb-devel - libxcb-devel
- libXcursor-devel
- xcb-util-wm-devel
- xcb-util-errors-devel
- re2-devel
- libxkbcommon-devel - libxkbcommon-devel
- mesa-libgbm-devel - mesa-libgbm-devel
- meson - meson
@@ -32,4 +38,28 @@ hyprland:
- xcb-util-renderutil-devel - xcb-util-renderutil-devel
- xcb-util-wm-devel - xcb-util-wm-devel
- xorg-x11-server-Xwayland-devel - xorg-x11-server-Xwayland-devel
build_installed_files: [] build_installed_files:
- share/wayland-sessions/hyprland-uwsm.desktop
- bin/hyprctl
- share/bash-completion/completions/hyprctl
- share/fish/vendor_completions.d/hyprctl.fish
- share/zsh/site-functions/_hyprctl
- include
- include/glaze
- bin/hyprpm
- share/bash-completion/completions/hyprpm
- share/fish/vendor_completions.d/hyprpm.fish
- share/zsh/site-functions/_hyprpm
- bin/Hyprland
- share/wayland-sessions/hyprland.desktop
- share/hypr/lockdead.png
- share/hypr/lockdead2.png
- share/hypr/wall0.png
- share/hypr/wall1.png
- share/hypr/wall2.png
- share/hypr/hyprland.conf
- share/xdg-desktop-portal/hyprland-portals.conf
- share/man/man1/Hyprland.1
- share/man/man1/hyprctl.1
- share/pkgconfig/hyprland.pc
- include/hyprland

View File

@@ -4,4 +4,13 @@ hyprlang:
pkg_deps: [] pkg_deps: []
build_deps: build_deps:
RedHat: [] RedHat: []
build_installed_files: [] build_installed_files:
- lib64/libhyprlang.so.0.6.0
- lib64/libhyprlang.so.2
- lib64/libhyprlang.so
- include/hyprlang.hpp
- lib64/libhyprlang.so.0.6.0
- lib64/libhyprlang.so.2
- lib64/libhyprlang.so
- include/hyprlang.hpp
- lib64/pkgconfig/hyprlang.pc