# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=wofi
pkgver=1.4.1
pkgrel=0
pkgdesc="A launcher/menu program for wlroots based wayland compositors."
url="https://hg.sr.ht/~scoopta/wofi"
arch="all"
license="GPL-3.0-only"
makedepends="wayland-dev gtk+3.0-dev meson"
options="!check" # no tests
subpackages="$pkgname-doc $pkgname-dev"
source="$pkgname-v$pkgver.tar.gz::https://hg.sr.ht/~scoopta/wofi/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson -Db_lto=true . build
	meson compile -C build
}

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

sha512sums="
a84aa9c7ae1d454a7e419e81d54dd266fb97eae6c0c8961f1631f403484f1226a6dac8d85c7bd942558b845486e4351aa8d981f021461bc336520bdc7f429944  wofi-v1.4.1.tar.gz
"
