upgpkg: sbcl 2.2.9-1
[arch-packages.git] / cmark / trunk / PKGBUILD
blob7f738a6d16eb1d2a1d20188263827b2c6d0e43b0
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Veeti Paananen <veeti.paananen@rojekti.fi>
4 pkgname=cmark
5 pkgver=0.30.2
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=('aaa9b2103cf89c522f9b42a2b43c07ecf75e07eb42214c0be5de17682ea1faf9c85e3dd28fe91d446b69a34f9980bcab6e276a99b42540c40c9ee1481b3a0d17')
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