[arch-commits] Commit in nlohmann-json/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Sat May 8 17:13:08 UTC 2021


    Date: Saturday, May 8, 2021 @ 17:13:07
  Author: dvzrv
Revision: 928890

archrelease: copy trunk to community-any

Added:
  nlohmann-json/repos/community-any/PKGBUILD
    (from rev 928889, nlohmann-json/trunk/PKGBUILD)
Deleted:
  nlohmann-json/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  110 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 53 insertions(+), 57 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-08 17:12:49 UTC (rev 928889)
+++ PKGBUILD	2021-05-08 17:13:07 UTC (rev 928890)
@@ -1,57 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-# tests are tracked in separate repo
-_test_pkgver=3.0.0
-# upstream doesn't use annotated tags
-_commit=d34771cafc87b358ba421faca28facc7f8080174
-pkgname=nlohmann-json
-pkgver=3.9.1
-pkgrel=1
-pkgdesc="JSON for Modern C++"
-arch=('any')
-url="https://github.com/nlohmann/json"
-license=('MIT')
-makedepends=('cmake' 'git')
-source=("${pkgname}::git+https://github.com/nlohmann/json#commit=${_commit}?signed"
-        "json_test_data-${_test_pkgver}.tar.gz::https://github.com/nlohmann/json_test_data/archive/v${_test_pkgver}.tar.gz")
-sha512sums=('SKIP'
-            'd9af8419b837c592ec7519cd5772651c761078a9c43cf2a309cee55c323aee0df0c233fb58a07d5ee2e77492ac8b16398de234b387eae037a60e3c9ba5b08891')
-b2sums=('SKIP'
-        'f0a47b41805bf1426f612e9a82efea2a3e5b1c15740c1c531d859e60dc5daeb85209b4fe363fd8fb84e3bbf01a2578c74538ba3e769726494047979f5a4d468d')
-validpgpkeys=('797167AE41C0A6D9232E48457F3CEA63AE251B69') # Niels Lohmann <mail at nlohmann.me>
-
-prepare() {
-  mkdir -vp "$pkgname/build"
-  mv -v "json_test_data-${_test_pkgver}/" "$pkgname/build/json_test_data/"
-  cd "$pkgname"
-  # remove tests that make the package non-reproducible
-  # https://github.com/nlohmann/json/issues/2324
-  sed -e '/add_subdirectory/d' -i test/CMakeLists.txt
-}
-
-build() {
-  cd "$pkgname"
-  cmake -DCMAKE_INSTALL_PREFIX='/usr' \
-        -DCMAKE_INSTALL_LIBDIR='/usr/lib' \
-        -DCMAKE_BUILD_TYPE='None' \
-        -DBUILD_TESTING=ON \
-        -DJSON_BuildTests=ON \
-        -DJSON_MultipleHeaders=ON \
-        -Wno-dev \
-        -B build \
-        -S .
-  make VERBOSE=1 -C build
-}
-
-check() {
-  cd "${pkgname}"
-  make -k test -C build
-}
-
-package() {
-  cd "$pkgname"
-  make DESTDIR="${pkgdir}" install -C build
-  install -vDm 644 {CODE_OF_CONDUCT,README}.md \
-    -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -vDm 644 LICENSE.MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}

Copied: nlohmann-json/repos/community-any/PKGBUILD (from rev 928889, nlohmann-json/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-08 17:13:07 UTC (rev 928890)
@@ -0,0 +1,53 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=nlohmann-json
+# upstream doesn't use annotated tags
+_commit=db78ac1d7716f56fc9f1b030b715f872f93964e4 # v3.9.1
+pkgver=3.9.1
+pkgrel=2
+# tests are tracked in a separate repo
+_test_pkgver=3.0.0
+pkgdesc="JSON for Modern C++"
+arch=('any')
+url="https://github.com/nlohmann/json"
+license=('MIT')
+makedepends=('cmake' 'git')
+source=("${pkgname}::git+https://github.com/nlohmann/json#commit=${_commit}?signed"
+        "json_test_data-${_test_pkgver}.tar.gz::https://github.com/nlohmann/json_test_data/archive/v${_test_pkgver}.tar.gz")
+sha512sums=('SKIP'
+            'd9af8419b837c592ec7519cd5772651c761078a9c43cf2a309cee55c323aee0df0c233fb58a07d5ee2e77492ac8b16398de234b387eae037a60e3c9ba5b08891')
+b2sums=('SKIP'
+        'f0a47b41805bf1426f612e9a82efea2a3e5b1c15740c1c531d859e60dc5daeb85209b4fe363fd8fb84e3bbf01a2578c74538ba3e769726494047979f5a4d468d')
+validpgpkeys=('797167AE41C0A6D9232E48457F3CEA63AE251B69') # Niels Lohmann <mail at nlohmann.me>
+
+prepare() {
+  mkdir -vp "$pkgname/build"
+  mv -v "json_test_data-${_test_pkgver}/" "$pkgname/build/json_test_data/"
+}
+
+build() {
+  cd "$pkgname"
+  cmake -DCMAKE_INSTALL_PREFIX='/usr' \
+        -DCMAKE_INSTALL_LIBDIR='/usr/lib' \
+        -DCMAKE_BUILD_TYPE='None' \
+        -DBUILD_TESTING=ON \
+        -DJSON_BuildTests=ON \
+        -DJSON_MultipleHeaders=ON \
+        -Wno-dev \
+        -B build \
+        -S .
+  make VERBOSE=1 -C build
+}
+
+check() {
+  cd "${pkgname}"
+  make -k test -C build
+}
+
+package() {
+  cd "$pkgname"
+  make DESTDIR="${pkgdir}" install -C build
+  install -vDm 644 {CODE_OF_CONDUCT,README}.md \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE.MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list