# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
pkgname=libpanel
pkgver=1.8.1
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 --no-rebuild --print-errorlogs -C output
}

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

sha512sums="
07506854860c14ae3286b3a1ade3e28b16d7fe68ca6738ba8c9ea087dd374bf91d4c2566844a34f7748f804a283eda0ff3637e98ccb14c4052331d615e203d7b  libpanel-1.8.1.tar.gz
"
