# Template file for 'cairo'
pkgname=cairo
version=1.18.4
revision=2
build_style=meson
build_helper="qemu"
# Tests get stuck.
configure_args="-Dtests=disabled"
hostmakedepends="pkg-config"
makedepends="fontconfig-devel freetype-devel libglib-devel libpng-devel libX11-devel
 libxcb-devel libXext-devel libXrender-devel lzo-devel pixman-devel zlib-devel"
short_desc="Vector graphics library with cross-device output support"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later, MPL-1.1"
homepage="https://cairographics.org"
distfiles="https://cairographics.org/releases/cairo-${version}.tar.xz"
checksum=445ed8208a6e4823de1226a74ca319d3600e83f6369f99b14265006599c32ccb

cairo-devel_package() {
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
