# Contributor: Simon Zeni <simon@bl4ckb0ne.ca>
# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=waypipe
pkgver=0.9.2
pkgrel=0
pkgdesc="proxy for Wayland clients"
url="https://gitlab.freedesktop.org/mstoeckl/waypipe"
arch="all !s390x" # fttfs
license="MIT"
makedepends="meson wayland-protocols wayland-dev scdoc lz4-dev zstd-dev mesa-dev
	libdrm-dev ffmpeg-dev libva-dev"
source="https://gitlab.freedesktop.org/mstoeckl/waypipe/-/archive/v$pkgver/waypipe-v$pkgver.tar.gz
	missing-string-include.patch"
subpackages="$pkgname-doc"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson \
		-Dwerror=false \
		-Db_ndebug=true \
		build
	meson compile -C build
}

check() {
	meson test --no-rebuild --print-errorlogs -C build
}

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

sha512sums="
0243e31dcabe38369d769d2b9e5e7e909abaff836991a0068f2a906f5462387f889c51e28b97775371865dd836ed6c9874c409c742c245800c9aa8c68d5111eb  waypipe-v0.9.2.tar.gz
0782fcb008a5fcafa39d215a6b777b95b00bae9df4b3fd7c20b2ed08ea191c5121031b83feb267223b3367ae63728bbf7af4066a2d371db1c99e3cfb3a81453d  missing-string-include.patch
"
