# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <ablocorrea@hotmail.com>
pkgname=gnome-font-viewer
pkgver=46.0
pkgrel=1
pkgdesc="View fonts on your system"
url="https://gitlab.gnome.org/GNOME/gnome-font-viewer"
arch="all"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
makedepends="
	fontconfig-dev
	freetype-dev
	glib-dev
	gnome-desktop-dev
	gtk4.0-dev
	harfbuzz-dev
	libadwaita-dev
	meson
	"
options="!check" # no tests
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-font-viewer/${pkgver%.*}/gnome-font-viewer-$pkgver.tar.xz
	gcc14-fix-function-callback-definition.patch"

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

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

sha512sums="
c97e109c16d59b22afa1b8c9736b99cf687284783691e624e331218d39a5ac509e53555416672bf8967ed8611ac25e7817766f8d5c66ca73cd2309b2405c2ebe  gnome-font-viewer-46.0.tar.xz
83f59e67b3822d4fe336314e6ac00a4bcfb8e2c5ac54f993402dbf1a1b79598ab56ccb14ed2a581120e1ad0fcf3bb9efd2adf9cdfa2794d3aa09deeff3a97b94  gcc14-fix-function-callback-definition.patch
"
