2024-02-25 20:30:31 +01:00
|
|
|
- name: Install build dependencies (1/2)
|
|
|
|
become: yes
|
|
|
|
apt:
|
|
|
|
state: build-dep
|
|
|
|
name:
|
|
|
|
- wlroots
|
|
|
|
|
|
|
|
- name: Install build dependencies (2/2)
|
|
|
|
become: yes
|
|
|
|
apt:
|
|
|
|
state: latest
|
|
|
|
install_recommends: false
|
|
|
|
name:
|
|
|
|
# General
|
|
|
|
- build-essential
|
|
|
|
- cmake
|
|
|
|
- meson
|
2024-05-27 20:57:26 +02:00
|
|
|
# hyprland-scanner
|
|
|
|
- libpugixml-dev
|
2024-03-21 20:01:53 +01:00
|
|
|
# hyprcursor
|
|
|
|
- libzip-dev
|
|
|
|
- librsvg2-dev
|
2024-05-03 21:56:50 +02:00
|
|
|
- libxcb-util-dev
|
2024-02-25 20:30:31 +01:00
|
|
|
# Hyprland
|
|
|
|
- libpango1.0-dev
|
|
|
|
- libtomlplusplus-dev
|
2024-05-27 20:57:26 +02:00
|
|
|
- uuid-dev
|
2024-02-25 20:30:31 +01:00
|
|
|
# xdg-desktop-portal-hyprland
|
2024-05-27 20:57:26 +02:00
|
|
|
#- qtbase5-dev
|
|
|
|
- qt6-base-dev
|
2024-02-25 20:30:31 +01:00
|
|
|
- libspa-0.2-dev
|
|
|
|
- libpipewire-0.3-dev
|
|
|
|
|
|
|
|
- name: Create source folders
|
|
|
|
become: yes
|
|
|
|
file:
|
|
|
|
path: "/usr/local/src/{{ item }}"
|
|
|
|
state: directory
|
|
|
|
owner: "{{ ansible_user_id }}"
|
|
|
|
group: "{{ ansible_user_id }}"
|
|
|
|
loop:
|
2024-05-27 20:57:26 +02:00
|
|
|
- "hyprwayland-scanner"
|
2024-02-25 20:30:31 +01:00
|
|
|
- "Hyprland"
|
|
|
|
- "hyprlang"
|
2024-03-21 20:01:53 +01:00
|
|
|
- "hyprcursor"
|
2024-02-25 20:30:31 +01:00
|
|
|
- "xdg-desktop-portal-hyprland"
|
|
|
|
|
2024-05-27 20:57:26 +02:00
|
|
|
- name: Checkout hyprwayland-scanner repo
|
|
|
|
ansible.builtin.git:
|
|
|
|
repo: 'https://github.com/hyprwm/hyprwayland-scanner.git'
|
|
|
|
dest: /usr/local/src/hyprwayland-scanner
|
|
|
|
version: v0.3.4
|
|
|
|
force: true
|
|
|
|
recursive: true
|
|
|
|
|
2024-02-25 20:30:31 +01:00
|
|
|
- name: Checkout Hyprland repo
|
|
|
|
ansible.builtin.git:
|
|
|
|
repo: 'https://github.com/hyprwm/Hyprland.git'
|
|
|
|
dest: /usr/local/src/Hyprland
|
2024-05-27 20:57:26 +02:00
|
|
|
version: v0.40.0
|
2024-02-25 20:30:31 +01:00
|
|
|
force: true
|
|
|
|
recursive: true
|
|
|
|
|
|
|
|
- name: Checkout hyprlang repo
|
|
|
|
ansible.builtin.git:
|
|
|
|
repo: 'https://github.com/hyprwm/hyprlang.git'
|
|
|
|
dest: /usr/local/src/hyprlang
|
2024-05-03 21:56:50 +02:00
|
|
|
version: v0.5.1
|
2024-03-21 20:01:53 +01:00
|
|
|
force: true
|
|
|
|
recursive: true
|
|
|
|
|
|
|
|
- name: Checkout hyprcursor repo
|
|
|
|
ansible.builtin.git:
|
|
|
|
repo: 'https://github.com/hyprwm/hyprcursor.git'
|
|
|
|
dest: /usr/local/src/hyprcursor
|
2024-05-03 21:56:50 +02:00
|
|
|
version: v0.1.8
|
2024-02-25 20:30:31 +01:00
|
|
|
force: true
|
|
|
|
recursive: true
|
|
|
|
|
|
|
|
- name: Checkout xdg-desktop-portal-hyprland repo
|
|
|
|
ansible.builtin.git:
|
|
|
|
repo: 'https://github.com/hyprwm/xdg-desktop-portal-hyprland.git'
|
|
|
|
dest: /usr/local/src/xdg-desktop-portal-hyprland
|
2024-05-27 20:57:26 +02:00
|
|
|
version: master
|
2024-02-25 20:30:31 +01:00
|
|
|
force: true
|
|
|
|
recursive: true
|
|
|
|
|
2024-05-27 20:57:26 +02:00
|
|
|
- name: Build hyprwayland-scanner
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: "{{ item }}"
|
|
|
|
chdir: /usr/local/src/hyprwayland-scanner
|
|
|
|
loop:
|
|
|
|
- "cmake -DCMAKE_INSTALL_PREFIX=/usr -B build"
|
|
|
|
- "cmake --build build"
|
|
|
|
|
|
|
|
- name: Install hyprwayland-scanner
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: "cmake --install build"
|
|
|
|
chdir: /usr/local/src/hyprwayland-scanner
|
|
|
|
|
2024-02-25 20:30:31 +01:00
|
|
|
- name: Build hyprlang
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: "{{ item }}"
|
|
|
|
chdir: /usr/local/src/hyprlang
|
|
|
|
loop:
|
|
|
|
- "cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B build"
|
|
|
|
- "cmake --build build --config Release --target hyprlang"
|
|
|
|
|
|
|
|
- name: Install hyprlang
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: "cmake --install build"
|
|
|
|
chdir: /usr/local/src/hyprlang
|
|
|
|
|
2024-03-21 20:01:53 +01:00
|
|
|
- name: Build hyprcursor
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: "{{ item }}"
|
|
|
|
chdir: /usr/local/src/hyprcursor
|
|
|
|
loop:
|
|
|
|
- "cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build"
|
|
|
|
- "cmake --build build --config Release --target all"
|
|
|
|
|
|
|
|
- name: Install hyprcursor
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: "cmake --install build"
|
|
|
|
chdir: /usr/local/src/hyprcursor
|
|
|
|
|
|
|
|
- name: Build Hyprland
|
|
|
|
community.general.make:
|
|
|
|
chdir: /usr/local/src/Hyprland
|
|
|
|
target: all
|
|
|
|
|
|
|
|
- name: Install Hyprland
|
|
|
|
become: true
|
|
|
|
community.general.make:
|
|
|
|
chdir: /usr/local/src/Hyprland
|
|
|
|
target: install
|
|
|
|
|
2024-02-25 20:30:31 +01:00
|
|
|
- name: Build xdg-desktop-portal-hyprland
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: "{{ item }}"
|
|
|
|
chdir: /usr/local/src/xdg-desktop-portal-hyprland
|
|
|
|
loop:
|
|
|
|
- "cmake -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -B build"
|
|
|
|
- "cmake --build build"
|
|
|
|
|
|
|
|
- name: Install xdg-desktop-portal-hyprland
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: "cmake --install build"
|
|
|
|
chdir: /usr/local/src/xdg-desktop-portal-hyprland
|
|
|
|
|
|
|
|
- name: Move xdg-desktop-portal-hyprland.service into place
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: /usr/lib/x86_64-linux-gnu/systemd/user/xdg-desktop-portal-hyprland.service
|
|
|
|
dest: /usr/lib/systemd/user/xdg-desktop-portal-hyprland.service
|
|
|
|
|
|
|
|
- name: Reload systemd
|
|
|
|
ansible.builtin.systemd_service:
|
|
|
|
daemon_reload: true
|
2024-05-27 20:57:26 +02:00
|
|
|
scope: user
|