From 0f73e80b8068a46473f4ea5685bf5865c692d04c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=28=D0=A5?= =?UTF-8?q?=D1=80=D0=B0=D0=BC=D1=8B=D1=87=D0=AA=29=20=D0=A5=D1=80=D0=B0?= =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= Date: Sun, 13 Apr 2025 13:28:42 +0300 Subject: [PATCH] nlohmann-json 3.12.0 --- nlohmann-json/alr.sh | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/nlohmann-json/alr.sh b/nlohmann-json/alr.sh index 7e68783..b8b3c2f 100644 --- a/nlohmann-json/alr.sh +++ b/nlohmann-json/alr.sh @@ -1,5 +1,5 @@ name='nlohmann-json' -version='3.11.3' +version='3.12.0' release='1' desc='Header-only JSON library for Modern C++' homepage='https://github.com/nlohmann/json' @@ -14,21 +14,28 @@ sources=("git+https://github.com/nlohmann/json.git#tag=v${version}") checksums=('SKIP') build() { - cd "${srcdir}" - mkdir build - cd ./build - cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF - make -j$(nproc) + cd "${srcdir}" + mkdir build + cd ./build + cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF + make -j$(($(nproc) - 1)) } check() { - cd "${srcdir}/build" - cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON - make -j$(nproc) - ctest --output-on-failure + cd "${srcdir}/build" + cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON + make -j$(($(nproc) - 1)) + ctest --output-on-failure } package() { - cd "${srcdir}/build" - make "DESTDIR=${pkgdir}" install + cd "${srcdir}/build" + 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 +} \ No newline at end of file