void-packages/srcpkgs/cmark/template
2021-10-02 17:07:08 -03:00

34 lines
879 B
Bash

# Template file for 'cmark'
pkgname=cmark
version=0.30.2
revision=1
build_style=cmake
short_desc="CommonMark parsing and rendering library and program in C"
maintainer="pancake <pancake@nopcode.org>"
license="MIT"
homepage="https://github.com/commonmark/cmark"
distfiles="https://github.com/commonmark/cmark/archive/${version}.tar.gz"
checksum=6c7d2bcaea1433d977d8fed0b55b71c9d045a7cdf616e3cd2dce9007da753db3
pre_configure() {
# Fix the SONAME version to use just the major number
vsed -i src/CMakeLists.txt \
-e 's;\(SOVERSION ${PROJECT_VERSION_MAJOR}\).*;\1;'
}
post_install() {
vlicense COPYING
}
cmark-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove usr/share/man/man3
}
}