# Description: C++ interface for atk
# URL: https://www.gtkmm.org/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: at-spi2-core glibmm

name=atkmm
version=2.28.3
release=1
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)

build() {
	meson setup build $name-$version \
		--prefix=/usr \
		--buildtype=plain \
		--wrap-mode nodownload \
		-D b_lto=true \
		-D b_pie=true \
		-D build-documentation=false

	meson compile -C build -j ${JOBS-1}
	DESTDIR=$PKG meson install -C build

	find $PKG -type f -name '*.h' -exec chmod g-w '{}' +
}
