# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=libwnck
pkgver=3.36.0
_pkgmaj=${pkgver%.*}
pkgrel=0
pkgdesc="Window navigator construction kit library from Gnome"
url="https://gnome.org"
arch="all"
license="LGPL-2.0+"
makedepends="glib-dev gtk+3.0-dev gobject-introspection-dev libxres-dev
	startup-notification-dev vala-dev meson ninja"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/libwnck/$_pkgmaj/libwnck-$pkgver.tar.xz"

build() {
	meson \
		-Dprefix=/usr \
		build .
	ninja -C build
}

check() {
	ninja -C build test
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

sha512sums="b7bf5d935327f61634a898594cf20a270e1b403c8df6c74e6ac20e22eea2845ac8c3007b31994728b74953e40c1015373efe10ed64243cf5e85fd210654aecb3  libwnck-3.36.0.tar.xz"