contrib/cmark/Pkgfile

22 lines
600 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
2023-08-18 21:22:50 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2019-05-03 15:57:55 +02:00
name=cmark
2024-01-30 20:32:59 +01:00
version=0.31.0
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() {
2023-08-18 21:22:50 +02:00
cmake -S $name-$version -B build \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-Wno-dev
2019-05-03 15:57:55 +02:00
2023-08-18 21:22:50 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
2019-05-03 15:57:55 +02:00
}