summaryrefslogtreecommitdiff
path: root/repo/cmark/cmark.xibuild
blob: a9e4f44738187897a5f6c6a5a7a17eb694840d31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

NAME="cmark"
DESC="C reference implementation of CommonMark, a rationalized Markdown spec"

MAKEDEPS=" cmake re2c"

PKG_VER=0.30.2
SOURCE="https://github.com/commonmark/cmark/archive/$PKG_VER/cmark-$PKG_VER.tar.gz"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
    cd $BUILD_ROOT
}

package() {
	DESTDIR="$PKG_DEST" cmake --install build
}