# Template file for 'md4c'
pkgname=md4c
version=0.5.2
revision=1
build_style=cmake
short_desc="Markdown for C"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="MIT"
homepage="https://github.com/mity/md4c/"
distfiles="https://github.com/mity/md4c/archive/refs/tags/release-${version}.tar.gz"
checksum=55d0111d48fb11883aaee91465e642b8b640775a4d6993c2d0e7a8092758ef21

libmd4c-html_package() {
	short_desc+=" - html - libraries"
	pkg_install() {
		vmove "usr/lib/libmd4c-html.so.*"
	}
}

libmd4c_package() {
	short_desc+=" - libraries"
	pkg_install() {
		vmove "usr/lib/libmd4c.so.*"
	}
}

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