# Template file for 'serd'
pkgname=serd
version=0.30.16
revision=1
build_style=meson
short_desc="Lightweight C library for RDF syntax"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="http://drobilla.net/software/serd.html"
changelog="https://drobilla.net/category/serd/"
distfiles="https://download.drobilla.net/serd-${version}.tar.xz"
checksum=f50f486da519cdd8d03b20c9e42414e459133f5a244411d8e63caef8d9ac9146

if [ "${XBPS_CHECK_PKGS}" ]; then
	configure_args="-Dtests=enabled"
else
	configure_args="-Dtests=disabled"
fi

post_install() {
	vlicense COPYING
}

serd-devel_package() {
	depends="libserd>=${version}_${revision}"
	short_desc+=" - Development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}

libserd_package() {
	short_desc+=" - Runtime library"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}
