# Contributor: Krassy Boykinov <kboykinov@teamcentrixx.com>
# Maintainer: team/gnome <kboykinov@teamcentrixx.com>
pkgname=tecla
pkgver=48.0.2
pkgrel=0
pkgdesc="Libadwaita keyboard layout viewer for the Gnome Desktop"
url="https://gitlab.gnome.org/GNOME/tecla"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no tests
makedepends="
	gtk4.0-dev
	libadwaita-dev
	libxkbcommon-dev
	meson
	"
subpackages="$pkgname-dev $pkgname-lang" # !! watch for -doc in future updates
source="https://download.gnome.org/sources/tecla/${pkgver%%.*}/tecla-$pkgver.tar.xz"

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

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	# move pkgconfigs to /usr/lib/
	mkdir -p "$pkgdir"/usr/lib/
	mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/

}

sha512sums="
8284f54d2fdf7320ae3fa38d69995cd5b69751efb4d8aad2508c77f1719c2c7aac196868cfc1442ba653fd39ff56689f841d9d39a96b546f265c19406fb49b46  tecla-48.0.2.tar.xz
"
