blob: e8e947b70f55f58328d81fa41795cbc2c98a8d42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=cmark
pkgver=0.29.0
pkgrel=0
pkgdesc="C reference implementation of CommonMark, a rationalized Markdown spec"
url="https://github.com/commonmark/cmark"
arch="all"
license="BSD-2-Clause"
makedepends="cmake re2c"
subpackages="$pkgname-doc $pkgname-static $pkgname-dev lib$pkgname:libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/commonmark/$pkgname/archive/$pkgver.tar.gz"
build() {
mkdir -p "$builddir"/build
cmake . -B build \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \
-DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \
-DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_VERBOSE_MAKEFILE=ON
make -C build
}
check() {
make -C build test
}
package() {
make -C build install DESTDIR="$pkgdir"
}
static() {
depends=""
pkgdesc="$pkgdesc (static library)"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
}
sha512sums="06eb110cfd90c9e980c022b7588e28864d15a4da5d07d61ad4b27c6de47367492b9e58e9434e62b07517aa6dc484f17af13916808be3188f38c37d20cbf33112 cmark-0.29.0.tar.gz"
|