mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 12:26:24 +02:00
66 lines
1.7 KiB
Text
66 lines
1.7 KiB
Text
# Contributor: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
|
|
# Maintainer: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
|
|
pkgname=niri
|
|
pkgver=25.05.1
|
|
pkgrel=0
|
|
pkgdesc="A scrollable-tiling Wayland compositor"
|
|
url="https://github.com/YaLTeR/niri"
|
|
arch="x86_64 ppc64le aarch64"
|
|
license="GPL-3.0-only"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
clang-libclang
|
|
clang-libs
|
|
eudev-dev
|
|
glib-dev
|
|
libdisplay-info-dev
|
|
libinput-dev
|
|
libseat-dev
|
|
libxkbcommon-dev
|
|
mesa-dev
|
|
pango-dev
|
|
pipewire-dev
|
|
rust
|
|
"
|
|
subpackages="
|
|
$pkgname-portalsconf
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/YaLTeR/niri/archive/refs/tags/v$pkgver.tar.gz
|
|
niri-session.patch
|
|
"
|
|
options="net" # rust crates
|
|
|
|
build() {
|
|
cargo auditable build \
|
|
--release \
|
|
--no-default-features \
|
|
--features dbus,xdp-gnome-screencast
|
|
}
|
|
|
|
check() {
|
|
ulimit -n 4096 # Fails otherwise due to lack of file descriptors
|
|
cargo test \
|
|
--release \
|
|
--no-default-features \
|
|
--features dbus,xdp-gnome-screencast
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/niri -t "$pkgdir"/usr/bin/
|
|
install -Dm644 resources/niri.desktop -t "$pkgdir"/usr/share/wayland-sessions/
|
|
install -Dm644 resources/niri-portals.conf -t "$pkgdir"/usr/share/xdg-desktop-portal/
|
|
}
|
|
|
|
portalsconf() {
|
|
pkgdesc="xdg-desktop-portal configuration of compatible portals for Niri"
|
|
install_if="$pkgname=$pkgver-r$pkgrel"
|
|
depends="xdg-desktop-portal xdg-desktop-portal-gnome"
|
|
amove usr/share/xdg-desktop-portal/niri-portals.conf
|
|
}
|
|
|
|
|
|
sha512sums="
|
|
63f6f6e651d2a399259354f5a80fd8815c2be9c1c6b7d5038c03d89fac5966596d0da8b36d83fa7ea85b192e77e0ddfcf40ee9244a2c44cd55776a7a3f54de35 niri-25.05.1.tar.gz
|
|
f488ed2f316e96902c737a1104c425f2281349d519825c02a39205957ee65607730a69b4857d5a5803f43b74180ab4efef7fcb4eb8bfb75e042d09a3e22d1dff niri-session.patch
|
|
"
|