# Template file for 'libraqm'
pkgname=libraqm
version=0.10.5
revision=1
build_style=meson
configure_args="-Ddocs=true -Db_ndebug=false"
hostmakedepends="pkg-config gtk-doc"
makedepends="harfbuzz-devel fribidi-devel"
short_desc="Library for complex text layout"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/HOST-Oman/libraqm"
changelog="https://raw.githubusercontent.com/HOST-Oman/libraqm/refs/heads/main/NEWS"
distfiles="https://github.com/HOST-Oman/libraqm/archive/refs/tags/v${version}.tar.gz"
checksum=7f3dd21b4b3bd28a36f2c911d31d91a9d69341697713923ef1aac65d56ebcafd

post_install() {
	vlicense COPYING
}

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