# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
pkgname=flare
pkgver=0.15.0
pkgrel=0
pkgdesc="Unofficial Signal GTK client"
url="https://gitlab.com/schmiddi-on-mobile/flare"
arch="all"
license="AGPL-3.0-only"
makedepends="
	blueprint-compiler
	cargo
	desktop-file-utils
	gettext-dev
	gtk4.0-dev
	gtksourceview5-dev
	libadwaita-dev
	libsecret-dev
	meson
	protobuf-dev
	"
subpackages="$pkgname-lang"
source="https://gitlab.com/schmiddi-on-mobile/flare/-/archive/$pkgver/flare-$pkgver.tar.gz
	no-cargo-home.patch
	"
# no tests
options="!check net"


prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

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

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

sha512sums="
a3ab64712807c49093531e5af53e8621a5560c14859ed75c3f40959643637998b527efd61a1f8de412231883fbb7d72786c476fe0b8898477ae7f88ed947706a  flare-0.15.0.tar.gz
8fbf1841edf7e0ca665592b8f70e61bd5cf95f4b5cf75c26f0ea9c73fd6e715dfc9635f9cf8c09983ba80e82f3f57593bb0a5b08baf67b1d6bc795bcea018d19  no-cargo-home.patch
"
