This commit is contained in:
2024-04-15 22:46:48 +03:00
parent 39046fe1f2
commit 4f45d2d875
13 changed files with 148 additions and 154 deletions

View File

@ -13,7 +13,6 @@ build_deps_rosa=('cmake' 'git')
sources=("git+https://github.com/nlohmann/json.git#tag=v${version}")
checksums=('SKIP')
build() {
cd "${srcdir}"
mkdir build
@ -22,7 +21,6 @@ build() {
make -j$(nproc)
}
check() {
cd "${srcdir}/build"
cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON
@ -30,7 +28,6 @@ check() {
ctest --output-on-failure
}
package() {
cd "${srcdir}/build"
make "DESTDIR=${pkgdir}" install