# Description: A 2D graphics library with support for multiple output devices
# URL: https://www.cairographics.org/
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: cairo fontconfig-32 glib-32 xorg-libpixman-32 xorg-libxext-32 xorg-libxrender-32 xorg-xcb-util-32

name=cairo-32
version=1.18.2
release=1
source=(https://gitlab.freedesktop.org/cairo/cairo/-/archive/$version/cairo-$version.tar.bz2)

build() {
	meson setup build ${name%-*}-$version \
		--prefix=/usr \
		--libdir=lib32 \
		--buildtype=plain \
		-D dwrite=disabled \
		-D spectre=disabled \
		-D symbol-lookup=disabled \
		-D tests=disabled

	meson compile -C build
	DESTDIR=$PKG meson install -C build

	rm -r $PKG/usr/{bin,include}
}