aboutsummaryrefslogtreecommitdiffstats
path: root/community/cmark/APKBUILD
blob: 4743c476118a9aa987bc70a7506d1040d18f61a2 (plain) (blame)
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
29
30
31
32
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=cmark
pkgver=0.29.0
pkgrel=1
pkgdesc="C reference implementation of CommonMark, a rationalized Markdown spec"
options="!check" # 2 Tests are incompatible with python3.8+
url="https://github.com/commonmark/cmark"
arch="all"
license="BSD-2-Clause"
makedepends="cmake re2c"
subpackages="$pkgname-doc $pkgname-static $pkgname-dev lib$pkgname:libs"
source="cmark-$pkgver.tar.gz::https://github.com/commonmark/cmark/archive/$pkgver.tar.gz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_VERBOSE_MAKEFILE=ON \
		$CMAKE_CROSSOPTS .
	make -C build
}

package() {
	make -C build install DESTDIR="$pkgdir"
}

sha512sums="06eb110cfd90c9e980c022b7588e28864d15a4da5d07d61ad4b27c6de47367492b9e58e9434e62b07517aa6dc484f17af13916808be3188f38c37d20cbf33112  cmark-0.29.0.tar.gz"