# Maintainer: Adam Thiede <me@adamthiede.com>
pkgname=j4-dmenu-desktop
pkgver=3.1
pkgrel=0
pkgdesc="A fast desktop menu"
url="https://github.com/enkore/j4-dmenu-desktop"
arch="all"
license="GPL-3.0-only"
depends="dmenu-virtual"
makedepends="meson fmt-dev spdlog-dev"
checkdepends="catch2-3 py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/enkore/j4-dmenu-desktop/archive/r$pkgver.tar.gz"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	$pkgname-zsh-completion
	$pkgname-fish-completion
"
builddir="$srcdir"/$pkgname-r$pkgver

build() {
	abuild-meson . output \
		-Denable-tests="$(want_check && echo true || echo false)"
	meson compile -C output
}

check() {
	meson test -C output
}

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

sha512sums="
6baa4bdf0564683e09bf3dd34f619ec9dcfc840be68ec0f68b4cd643bee5acbc09ebfffaf82daced991899fb467c84ed441257915a9c6b411f317e9947471fca  j4-dmenu-desktop-3.1.tar.gz
"
