# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
pkgname=libpanel
pkgver=1.10.0
pkgrel=0
pkgdesc="Dock/panel library for GTK 4"
url="https://gitlab.gnome.org/GNOME/libpanel"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	gobject-introspection-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	vala
	"
subpackages="$pkgname-dev $pkgname-lang"
source="https://gitlab.gnome.org/GNOME/libpanel/-/archive/$pkgver/libpanel-$pkgver.tar.gz"

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

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

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

sha512sums="
166cb95932ea0e00fb0b3b6349f55f1197569ff5bbc9cec60c5ff46745af20b3c8201086f6d3c48c8cad825f109d192a394903987fda2840ec14e26c0c3782a6  libpanel-1.10.0.tar.gz
"
