Skip to content

Commit

Permalink
new package: niri 0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
trolljoe committed Oct 28, 2024
1 parent 8ae926b commit 9664d6c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
12 changes: 12 additions & 0 deletions srcpkgs/niri/patches/remove-session.patch
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions srcpkgs/niri/template
Original file line number Diff line number Diff line change
@@ -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 <joetroll@proton.me>"
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
}

0 comments on commit 9664d6c

Please sign in to comment.