4.10.3-2: add gtktreeviewmodel fixes
[arch-packages.git] / cmark / trunk / PKGBUILD
blob1e5dee50da66745f1651b45b20566500c6d7c0fb
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Veeti Paananen <veeti.paananen@rojekti.fi>
4 pkgname=cmark
5 pkgver=0.30.3
6 pkgrel=1
7 pkgdesc='CommonMark parsing and rendering library and program in C'
8 arch=(x86_64)
9 url='https://github.com/commonmark/cmark'
10 license=('custom:BSD2')
11 depends=(glibc)
12 makedepends=(cmake python)
13 source=(https://github.com/commonmark/cmark/archive/$pkgver/$pkgname-$pkgver.tar.gz)
14 sha512sums=('27383bfef95ae1390c26aff0dd2cbca33704e7d20116bf29da4695d2c9a4146b86daba0da1e91bdb9eab95671702f885e832b3d31d51601731f1dc630df5237b')
16 build() {
17   cmake -B build -S $pkgname-$pkgver \
18     -DCMAKE_INSTALL_PREFIX=/usr \
19     -DCMARK_STATIC=OFF
20   cmake --build build
23 check() {
24   cmake --build build --target test
27 package() {
28   DESTDIR="$pkgdir" cmake --install build
30   install -Dm 644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname