maintainer="Michał Polański <michal@polanski.me>"
pkgname=chayang
pkgver=0.1.0
pkgrel=0
pkgdesc="Gradually dim the screen on Wayland"
url="https://git.sr.ht/~emersion/chayang"
license="MIT"
arch="all"
makedepends="meson wayland-dev wayland-protocols"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~emersion/chayang/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

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

check() {
	meson test --print-errorlogs -C output
}

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

sha512sums="
62924d1cf66b43882672f917499e4e73ca221bc1fbeaee2ac3efb9969a5d022c0d414d043b50905a619b9963bf5281b735e4903cfaa68b794c03b46f569aab02  chayang-0.1.0.tar.gz
"
