contrib/cmark/Pkgfile

24 lines
672 B
Plaintext
Raw Normal View History

2019-05-03 15:57:55 +02:00
# Description: CommonMark parsing and rendering library and program in C
2021-06-27 20:31:45 +02:00
# URL: https://github.com/commonmark/cmark
2019-05-03 15:57:55 +02:00
# Maintainer: Danny Rawlins, crux at romster dot me
2021-06-27 20:31:45 +02:00
# Depends on: cmake
2019-05-03 15:57:55 +02:00
name=cmark
version=0.30.2
2019-05-03 15:57:55 +02:00
release=1
2021-06-27 20:31:45 +02:00
source=(https://github.com/commonmark/$name/archive/$version/$name-$version.tar.gz)
2019-05-03 15:57:55 +02:00
build() {
[[ -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-07 00:49:30 +01:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2020-11-07 17:07:42 +01:00
-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
}