blob: 5ac1e3af47ced0fd104f45dfbf83954873d3d748 (
plain)
1 # Description: JSON for Modern C++
2 # URL: https://github.com/nlohmann/json
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on:
5
6 name=nlohmann-json
7 version=3.11.2
8 release=1
9 source=(https://github.com/nlohmann/json/archive/v$version/$name-$version.tar.gz)
10
11 build() {
12 cmake -S json-$version -B build -G Ninja \
13 -D CMAKE_INSTALL_PREFIX=/usr \
14 -D CMAKE_INSTALL_LIBDIR=lib \
15 -D CMAKE_BUILD_TYPE=Release \
16 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
17 -Wno-dev
18 cmake --build build
19 DESTDIR=$PKG cmake --install build
20 }
|