testing/wayland-pipewire-idle-inhibit: new aport

This commit is contained in:
Lauri Tirkkonen 2024-10-15 16:56:30 +09:00 committed by Kevin Daudt
parent 0978310f61
commit accd8d563e

View File

@ -0,0 +1,39 @@
# Maintainer: Lauri Tirkkonen <lauri@hacktheplanet.fi>
pkgname=wayland-pipewire-idle-inhibit
pkgver=0.5.2
pkgrel=0
pkgdesc="Suspends automatic wayland idling when media is being played through Pipewire"
url="https://github.com/rafaelrc7/wayland-pipewire-idle-inhibit"
# s390x: fails to build nix crate
# x86, armv7, armhf: fails to build libspa-sys crate
arch="all !s390x !armhf !armv7 !x86"
license="GPL-3.0-only"
makedepends="
cargo
cargo-auditable
clang-libclang
pipewire-dev
wayland-dev
wayland-protocols
"
source="v$pkgver.tar.gz::https://github.com/rafaelrc7/wayland-pipewire-idle-inhibit/archive/refs/tags/v$pkgver.tar.gz"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --frozen --release
}
check() {
cargo test --frozen
}
package() {
install -D -m 0755 target/release/$pkgname "$pkgdir"/usr/bin/$pkgname
}
sha512sums="
eac194d221f81ce48df3f0f405b25266dfc5d0beded61e66bb705a82488aa17d4903b744fd11e26330a3aaf17bfb10d190af0ea34123750a71bf434710f552d7 v0.5.2.tar.gz
"