# Description: C++ interface to pango.
# URL: https://gitlab.gnome.org/GNOME/pangomm
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: cairomm-1.0 glibmm pango

name=pangomm
version=2.46.3
release=1
source=(https://ftp.gnome.org/pub/GNOME/sources/$name/${version%.*}/$name-$version.tar.xz
	pango.patch)

build() {
	patch -d $name-$version -p1 -i $SRC/pango.patch

	meson setup build $name-$version \
		--prefix=/usr \
		--buildtype=plain \
		-D b_lto=true \
		-D b_pie=true

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