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=('aaa9b2103cf89c522f9b42a2b43c07ecf75e07eb42214c0be5de17682ea1faf9c85e3dd28fe91d446b69a34f9980bcab6e276a99b42540c40c9ee1481b3a0d17')
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