python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / cmark / template
blobed1cf58d7e9be78315fc2e58d4dfe7e6ade4df04
1 # Template file for 'cmark'
2 pkgname=cmark
3 version=0.28.3
4 revision=2
5 build_style=cmake
6 short_desc="CommonMark parsing and rendering library and program in C"
7 maintainer="pancake <pancake@nopcode.org>"
8 license="MIT"
9 homepage="https://github.com/jgm/cmark"
10 distfiles="https://github.com/jgm/cmark/archive/${version}.tar.gz"
11 checksum=acc98685d3c1b515ff787ac7c994188dadaf28a2d700c10c1221da4199bae1fc
13 pre_configure() {
14         # Fix the SONAME version to use just the major number
15         sed -i src/CMakeLists.txt \
16                 -e 's;\(SOVERSION ${PROJECT_VERSION_MAJOR}\).*;\1;'
19 post_install() {
20         vlicense COPYING
23 cmark-devel_package() {
24         depends="${sourcepkg}>=${version}_${revision}"
25         short_desc+=" - development files"
26         pkg_install() {
27                 vmove usr/include
28                 vmove "usr/lib/*.so"
29                 vmove "usr/lib/*.a"
30                 vmove usr/lib/pkgconfig
31                 vmove usr/lib/cmake
32                 vmove usr/share/man/man3
33         }