# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=wf-recorder
pkgver=0.5.0
pkgrel=0
pkgdesc="Screen recording for wlroots-based compositors"
url="https://github.com/ammen99/wf-recorder"
arch="all !ppc64le"
license="MIT"
makedepends="
	ffmpeg-dev
	mesa-dev
	meson
	pipewire-dev
	pulseaudio-dev
	scdoc
	wayland-dev
	wayland-protocols
	"
subpackages="$pkgname-doc"
source="https://github.com/ammen99/wf-recorder/releases/download/v$pkgver/wf-recorder-$pkgver.tar.xz"
options="!check" # no test suite

build() {
	abuild-meson \
		-Db_lto=true \
		-Ddefault_audio_backend=pipewire \
		. output
	meson compile -C output
}

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

sha512sums="
61bb85a57dfee0be24b49cb1ea17442692ce0b86368aac2c4f3c64672912be2737255598874f724d714c095ac1a1f7016ec42968b6020698d81ab8f804b8a8c3  wf-recorder-0.5.0.tar.xz
"
