# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <pabloyoyoista@postmarketos.org>
pkgname=gnome-contacts
pkgver=47.1.1
pkgrel=0
pkgdesc="A contacts manager for GNOME"
url="https://wiki.gnome.org/Apps/Contacts"
# s390x: doubt anyone would use this on a mainframe
arch="all !s390x"
license="GPL-2.0-or-later"
makedepends="
	desktop-file-utils
	evolution-data-server-dev
	folks-dev
	glib-dev
	gnome-desktop-dev
	gnome-online-accounts-dev
	gstreamer-dev
	gtk4.0-dev
	libadwaita-dev
	libgee-dev
	libportal-dev
	libqrencode-dev
	meson
	telepathy-glib-dev
	vala
	"
checkdepends="appstream-glib"
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/gnome-contacts/${pkgver%%.*}/gnome-contacts-$pkgver.tar.xz"

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

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

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

sha512sums="
e03588a82a6ce12d81cb7e346dee59a8e6b56365425c6ff172d4f4ce0b08cfae521dd279aca299d0c9938a832bfbe631a87e83d4a83daff8c5464d6173ae7ea3  gnome-contacts-47.1.1.tar.xz
"
