mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-10 14:24:06 +02:00
43 lines
1 KiB
Text
43 lines
1 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=cmark
|
|
pkgver=0.31.1
|
|
pkgrel=0
|
|
pkgdesc="C reference implementation of CommonMark, a rationalized Markdown spec"
|
|
url="https://github.com/commonmark/cmark"
|
|
arch="all"
|
|
license="BSD-2-Clause"
|
|
depends_dev="$pkgname=$pkgver-r$pkgrel"
|
|
makedepends="
|
|
cmake
|
|
re2c
|
|
samurai
|
|
"
|
|
checkdepends="python3"
|
|
subpackages="$pkgname-doc $pkgname-dev lib$pkgname:libs"
|
|
source="https://github.com/commonmark/cmark/archive/$pkgver/cmark-$pkgver.tar.gz"
|
|
|
|
# secfixes:
|
|
# 0.30.3-r0:
|
|
# - CVE-2023-22486
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBS=TRUE
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir build -E "api_test"
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
3b4f8b47d8ea270078ab986aa22fc32b227786459bd33c7225aac578d8dd014e3d8788a6add60ea10571fdb4c7dc6a1ece960815a02f04f153b1775c73ccff8f cmark-0.31.1.tar.gz
|
|
"
|