# Template file for 'libutf8proc'
pkgname=libutf8proc
version=2.11.3
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
short_desc="C library for processing UTF-8 encoded Unicode strings"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://juliastrings.github.io/utf8proc/"
changelog="https://raw.githubusercontent.com/JuliaStrings/utf8proc/master/NEWS.md"
distfiles="https://github.com/JuliaStrings/utf8proc/archive/refs/tags/v${version}.tar.gz"
checksum=abfed50b6d4da51345713661370290f4f4747263ee73dc90356299dfc7990c78

if [ -n "$XBPS_CHECK_PKGS" ]; then
	configure_args+=" -DUTF8PROC_ENABLE_TESTING=ON"
fi

post_install() {
	vlicense LICENSE.md
}

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