diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 11 insertions, 4 deletions
@@ -1,13 +1,13 @@ pkgbase = nlohmann-json-git pkgdesc = Header-only JSON library for Modern C++ - pkgver = 3.4.0 + pkgver = 3.5.0 pkgrel = 1 url = https://github.com/nlohmann/json arch = x86_64 license = MIT makedepends = cmake makedepends = git - provides = nlohmann-json=3.3.0 + provides = nlohmann-json=3.5.0 conflicts = nlohmann-json source = git+https://github.com/nlohmann/json sha256sums = SKIP @@ -2,7 +2,7 @@ # Contributor: Eduardo Sánchez Muñoz pkgname=nlohmann-json-git _name="${pkgname%-git}" -pkgver=3.4.0 +pkgver=3.5.0 pkgrel=1 pkgdesc='Header-only JSON library for Modern C++' url='https://github.com/nlohmann/json' @@ -21,15 +21,22 @@ pkgver() { printf %s "${v//-/+}" } +_cmake_flags=( + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_INSTALL_PREFIX=/usr +) + build() { mkdir build cd build - cmake ../json -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release + cmake ../json "${_cmake_flags[@]}" -DBUILD_TESTING=OFF make } check() { cd build + cmake ../json "${_cmake_flags[@]}" -DBUILD_TESTING=ON + make ctest --output-on-failure } |