# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=waylevel pkgver=1.0.0 pkgrel=1 pkgdesc="A tool to print Wayland toplevels status and info" url="https://git.sr.ht/~shinyzenith/waylevel" # s390x: nix crate fails to build # riscv64: rust broken arch="all !s390x !riscv64" license="BSD-2-Clause" depends="wayland-libs-client" makedepends=" cargo cargo-auditable wayland-dev " source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~shinyzenith/waylevel/archive/$pkgver.tar.gz" export CARGO_PROFILE_RELEASE_OPT_LEVEL="z" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --frozen --release } check() { cargo test --frozen } package() { install -D -m755 target/release/$pkgname -t "$pkgdir"/usr/bin/ } sha512sums=" 3bf9064c7c76fe0c034542a130ae8f016d6bca56ca89f8ed39a5358ad76f1bc3fb43fb64f762a0040755ddbe90604167088237dc09e2f7eca1d0139b180a87b2 waylevel-1.0.0.tar.gz "