void-packages/srcpkgs/md4c/template

37 lines
863 B
Bash

# Template file for 'md4c'
pkgname=md4c
version=0.4.8
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=4a457df853425b6bb6e3457aa1d1a13bccec587a04c38c622b1013a0da41439f
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"
}
}