1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Veeti Paananen <veeti.paananen@rojekti.fi>
7 pkgdesc='CommonMark parsing and rendering library and program in C'
9 url='https://github.com/commonmark/cmark'
10 license=('custom:BSD2')
12 makedepends=(cmake python)
13 source=(https://github.com/commonmark/cmark/archive/$pkgver/$pkgname-$pkgver.tar.gz)
14 sha512sums=('27383bfef95ae1390c26aff0dd2cbca33704e7d20116bf29da4695d2c9a4146b86daba0da1e91bdb9eab95671702f885e832b3d31d51601731f1dc630df5237b')
17 cmake -B build -S $pkgname-$pkgver \
18 -DCMAKE_INSTALL_PREFIX=/usr \
24 cmake --build build --target test
28 DESTDIR="$pkgdir" cmake --install build
30 install -Dm 644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname