# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
pkgname=flowtime
pkgver=6.5
pkgrel=0
pkgdesc="GTK4 / libadwaita assistant for the Flowtime working technique"
url="https://github.com/Diego-Ivan/Flowtime"
# s390x: blueprint-compiler missing
arch="all !s390x"
license="GPL-3.0-or-later"
makedepends="
	blueprint-compiler
	desktop-file-utils
	gtk4.0-dev
	libadwaita-dev
	libgee-dev
	libportal-dev
	libxml2-dev
	meson
	vala
	"
checkdepends="appstream-glib"
options="!check" # upstream bug in third check
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/Diego-Ivan/Flowtime/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/Flowtime-$pkgver"

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

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

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

sha512sums="
b4ba86905965a5fe962179749f5528e910473e106705a268c3aba793ecf64a581fcafd7f4e476e87730f461737532d5ff6c03c1bd97238f8b12812345c470c8e  flowtime-6.5.tar.gz
"
