# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: mio <miyopan@e.email>
pkgname=libgedit-amtk
pkgver=5.9.0
pkgrel=0
pkgdesc="Actions, menus and toolbars kit for GTK applications"
url="https://gitlab.gnome.org/World/gedit/libgedit-amtk"
arch="all"
license="LGPL-3.0-or-later"
makedepends="
	glib-dev
	gobject-introspection-dev
	gtk-doc
	gtk+3.0-dev
	meson
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://gitlab.gnome.org/World/gedit/libgedit-amtk/-/archive/$pkgver/libgedit-amtk-$pkgver.tar.gz"
replaces="amtk"

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

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

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

sha512sums="
27e160338f03884109c0522f095cce8480745b9e9e93ebc540aad22e5f92efbaaf1c09b96aa624184f2b0d1183381efacb917ded147bb0afd14f535ec7f632fb  libgedit-amtk-5.9.0.tar.gz
"
