# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=wob
pkgver=0.15.1
pkgrel=1
pkgdesc="Lightweight overlay volume/backlight/progress/anything bar for Wayland"
url="https://github.com/francma/wob"
arch="all"
license="ISC"
makedepends="meson git inih-dev libseccomp-dev wayland-protocols wayland-dev scdoc"
checkdepends="cmocka-dev"
subpackages="$pkgname-doc"
source="
	https://github.com/francma/wob/archive/$pkgver/wob-$pkgver.tar.gz
	0001-Fix-pledge-problem-on-armv7.patch
	"

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

check() {
	meson test -C output
}

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

sha512sums="
82cff4cb843ed2be7d47e6bc3d56b49242ddf76cd1c37aaba35d43ac22912b094bb213d7dc4ac49ef3862597b2f9ec3f07772c0d348c4e7f0afc961633aad2bb  wob-0.15.1.tar.gz
7a21f9526aa0bc00c092493fb2b8af09b9e0004ad8476be902821c134b7bee5e921e141cd4e11da78c321275a206c86d2a106f659fabecabfb7449e58bbfbaef  0001-Fix-pledge-problem-on-armv7.patch
"
