aports/testing/niri/APKBUILD
Pedro Lucas Porcellis 3d9c1aad99 testing/niri: take over maintainership
the original maintainer/contributor said [1] that they weren't
using/maintaining the package anymore.

[1]: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/80666#note_486583
2025-03-20 17:04:54 +00:00

63 lines
1.6 KiB
Text

# Contributor: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
# Maintainer: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
pkgname=niri
pkgver=25.02
pkgrel=1
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"
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="
1ed4061cf6267c32a035604314f6c324f3002891ef14bbec5bfdb8b980cab5d2ef94b856cd651d7ebb99e249158be5849c66f661ab731ac6f0c25f2eda8a3745 niri-25.02.tar.gz
"