2019-05-03 23:57:55 +10:00
|
|
|
# Description: CommonMark parsing and rendering library and program in C
|
2021-06-27 18:31:45 +00:00
|
|
|
# URL: https://github.com/commonmark/cmark
|
2019-05-03 23:57:55 +10:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2021-06-27 18:31:45 +00:00
|
|
|
# Depends on: cmake
|
2019-05-03 23:57:55 +10:00
|
|
|
|
|
|
|
name=cmark
|
2023-01-26 20:09:39 +01:00
|
|
|
version=0.30.3
|
2019-05-03 23:57:55 +10:00
|
|
|
release=1
|
2021-06-27 18:31:45 +00:00
|
|
|
source=(https://github.com/commonmark/$name/archive/$version/$name-$version.tar.gz)
|
2019-05-03 23:57:55 +10:00
|
|
|
|
|
|
|
build() {
|
2020-11-08 10:01:33 +00:00
|
|
|
[[ -e /usr/bin/ninja ]] && PKGMK_CMARK+=' -G Ninja'
|
|
|
|
cmake -S $name-$version -B build $PKGMK_CMARK \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:49:30 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-07 16:07:42 +00:00
|
|
|
-Wno-dev
|
2019-05-03 23:57:55 +10:00
|
|
|
|
2020-11-07 16:07:42 +00:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-05-03 23:57:55 +10:00
|
|
|
}
|