contrib/cmark/Pkgfile

24 lines
690 B
Plaintext
Raw Normal View History

2019-05-03 15:57:55 +02:00
# Description: CommonMark parsing and rendering library and program in C
# URL: https://github.com/jgm/cmark
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: cmake python
name=cmark
version=0.29.0
release=1
source=(https://github.com/jgm/$name/archive/$version/$name-$version.tar.gz)
build() {
2020-11-07 17:07:42 +01:00
[[ -e /usr/bin/ninja ]] && PKGMK_CMARK_OPTIONS=' -GNinja'
cmake -S$name-$version -Bbuild $PKGMK_CMARK_OPTIONS \
2019-05-03 15:57:55 +02:00
-DCMAKE_INSTALL_PREFIX=/usr \
2020-11-07 17:07:42 +01:00
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-Wno-dev
2019-05-03 15:57:55 +02:00
2020-11-07 17:07:42 +01:00
cmake --build build
DESTDIR=$PKG cmake --install build
2019-05-03 15:57:55 +02:00
}