diff --git a/srcpkgs/niri/patches/remove-session.patch b/srcpkgs/niri/patches/remove-session.patch new file mode 100644 index 00000000000000..2b22a07991f068 --- /dev/null +++ b/srcpkgs/niri/patches/remove-session.patch @@ -0,0 +1,12 @@ +remove the niri-session, as that's a systemd-only binary. replace with niri --session which automatically adds envs. +-- +--- a/resources/niri.desktop ++++ b/resources/niri.desktop +@@ -1,6 +1,6 @@ + [Desktop Entry] + Name=Niri + Comment=A scrollable-tiling Wayland compositor +-Exec=niri-session ++Exec=/usr/bin/niri --session + Type=Application + DesktopNames=niri diff --git a/srcpkgs/niri/template b/srcpkgs/niri/template new file mode 100644 index 00000000000000..9af1ff19698838 --- /dev/null +++ b/srcpkgs/niri/template @@ -0,0 +1,27 @@ +# Template file for 'niri' +pkgname=niri +version=0.1.9 +revision=1 +build_style=cargo +configure_args="--no-default-features --features xdp-gnome-screencast" +hostmakedepends="pkg-config" +makedepends="eudev-libudev-devel libxkbcommon-devel libinput-devel libdisplay-info-devel pipewire-devel pango-devel libseat-devel clang libgbm-devel" +depends="eudev-libudev libxkbcommon libinput libpipewire pango libseat libgbm libdisplay-info" +short_desc="Scrollable-tiling Wayland compositor" +maintainer="joetroll " +license="GPL-3.0-or-later" +homepage="https://github.com/YaLTeR/niri" +changelog="https://github.com/YaLTeR/niri/releases" +distfiles="https://github.com/YaLTeR/niri/archive/refs/tags/v${version}.tar.gz" +checksum=70427efcde50a9d262c341befbd4df4e24557afd8311753bf912a4be1bf243a7 + +if [ "$XBPS_TARGET_LIBC" = "musl" ]; then + export RUSTFLAGS='-C target-feature=+crt-static' +fi + +post_install() { + vmkdir usr/share/wayland-sessions + vmkdir usr/share/xdg-desktop-portal + vcopy resources/niri.desktop usr/share/wayland-sessions + vcopy resources/niri-portals.conf usr/share/xdg-desktop-portal +}