# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=sway-audio-idle-inhibit
pkgver=0.1.2
pkgrel=0
pkgdesc="Prevents swayidle from sleeping while any application is outputting or receiving audio"
url="https://github.com/ErikReider/SwayAudioIdleInhibit"
license="GPL-3.0-only"
arch="all"
makedepends="
	pulseaudio-dev
	wayland-dev
	wayland-protocols
	meson
	ninja
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/ErikReider/SwayAudioIdleInhibit/archive/v$pkgver.tar.gz"
options="!check" # no test suite
builddir="$srcdir/SwayAudioIdleInhibit-$pkgver"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
3240ab96b0b2ea229ed730a264e62f00765be49a7aad295d3bdf95c4d66678318b2ba4c6f0077ab4c4bae88306d63901860a252604711c052996cf92c50b9292  sway-audio-idle-inhibit-0.1.2.tar.gz
"
