nlohmann-json 3.12.0

This commit is contained in:
Евгений Храмов 2025-04-13 13:28:42 +03:00
parent a7968bd20e
commit 0f73e80b80

@ -1,5 +1,5 @@
name='nlohmann-json' name='nlohmann-json'
version='3.11.3' version='3.12.0'
release='1' release='1'
desc='Header-only JSON library for Modern C++' desc='Header-only JSON library for Modern C++'
homepage='https://github.com/nlohmann/json' homepage='https://github.com/nlohmann/json'
@ -18,13 +18,13 @@ build() {
mkdir build mkdir build
cd ./build cd ./build
cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF
make -j$(nproc) make -j$(($(nproc) - 1))
} }
check() { check() {
cd "${srcdir}/build" cd "${srcdir}/build"
cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON
make -j$(nproc) make -j$(($(nproc) - 1))
ctest --output-on-failure ctest --output-on-failure
} }
@ -32,3 +32,10 @@ package() {
cd "${srcdir}/build" cd "${srcdir}/build"
make "DESTDIR=${pkgdir}" install make "DESTDIR=${pkgdir}" install
} }
files() {
printf '"%s" ' ./usr/include/nlohmann/detail/**/*
printf '"%s" ' ./usr/include/nlohmann/thirdparty/hedley/*
printf '"%s" ' ./usr/share/cmake/nlohmann_json/*
echo ./usr/share/pkgconfig/nlohmann_json.pc
}