🔒 Repository is read-only – file editing is disabled.
1234567891011121314151617181920212223242526272829303132333435363738
pkgname: nlohmann-json
pkgver: '3.12.0'
pkgrel: '1'
pkgdesc: JSON for Modern C++
url: 'https://github.com/nlohmann/json'
arch: x86_64
license:
- MIT
depends: []
makedepends:
- cmake
- git
source:
- 'https://github.com/nlohmann/json_test_data/archive/v3.1.0.tar.gz'
sha256sums:
- 884b1e21f38cfd6a62c159f1b7e0a8f5168ae5daaa384ed4dc0c0fa6660f21bd
build: |
git clone $url.git ${pkgname}
cd ${pkgname}
git checkout v${pkgver}
git cherry-pick --no-commit 756ca22ec5b0d89b5d107b4c30891d1293650c87
cmake -B build \
-D BUILD_TESTING=ON \
-D CMAKE_BUILD_TYPE=None \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=/usr/lib \
-D JSON_BuildTests=ON \
-D JSON_TestDataDirectory=json_test_data-3.1.0/ \
-D JSON_MultipleHeaders=ON \
-S ${pkgname} -W no-dev
cmake --build build --verbose
DESTDIR=${PKGDIR} cmake --install build
install -vDm 644 ${pkgname}/README.md -t ${PKGDIR}/usr/share/doc/${pkgname}/
install -vDm 644 ${pkgname}/LICENSE.MIT -t ${PKGDIR}/usr/share/licenses/${pkgname}/
package: |
true