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

David Runge dvzrv at archlinux.org
Thu Mar 12 09:37:26 UTC 2020


    Date: Thursday, March 12, 2020 @ 09:37:26
  Author: dvzrv
Revision: 595081

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   94 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 51 insertions(+), 43 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-12 09:37:17 UTC (rev 595080)
+++ PKGBUILD	2020-03-12 09:37:26 UTC (rev 595081)
@@ -1,43 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-pkgname=nlohmann-json
-pkgver=3.7.3
-# upstream doesn't use annotated tags:
-_commit=e7b3b40b5a95bc74b9a7f662830a27c49ffc01b4
-pkgrel=3
-pkgdesc="JSON for Modern C++"
-arch=('any')
-url="https://github.com/nlohmann/json"
-license=('MIT')
-makedepends=('cmake' 'git' 'meson')
-source=("${pkgname}::git+https://github.com/nlohmann/json#commit=${_commit}?signed")
-md5sums=('SKIP')
-validpgpkeys=('797167AE41C0A6D9232E48457F3CEA63AE251B69') # Niels Lohmann <mail at nlohmann.me>
-
-prepare() {
-  mv -v "$pkgname" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  cmake -DCMAKE_INSTALL_PREFIX=/usr \
-        -DBUILD_TESTING=ON \
-        -DCMAKE_INSTALL_LIBDIR=/usr/lib \
-        -DJSON_MultipleHeaders=ON \
-        -B build \
-        -S .
-  make VERBOSE=1 -C build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  make -k check
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  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 595080, nlohmann-json/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-12 09:37:26 UTC (rev 595081)
@@ -0,0 +1,51 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=nlohmann-json
+pkgver=3.7.3
+# upstream doesn't use annotated tags:
+_commit=e7b3b40b5a95bc74b9a7f662830a27c49ffc01b4
+pkgrel=4
+pkgdesc="JSON for Modern C++"
+arch=('any')
+url="https://github.com/nlohmann/json"
+license=('MIT')
+makedepends=('cmake' 'git' 'meson')
+source=("${pkgname}::git+https://github.com/nlohmann/json#commit=${_commit}?signed")
+md5sums=('SKIP')
+validpgpkeys=('797167AE41C0A6D9232E48457F3CEA63AE251B69') # Niels Lohmann <mail at nlohmann.me>
+
+prepare() {
+  mv -v "$pkgname" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+        -DBUILD_TESTING=ON \
+        -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+        -DJSON_MultipleHeaders=ON \
+        -B build \
+        -S .
+  make VERBOSE=1 -C build
+  # create pkgconfig integration
+  meson --prefix=/usr \
+             --libdir=lib \
+             meson-build
+  ninja -C meson-build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  make -k check
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  # NOTE: installing first with meson, as it will install the single header
+  # file, but cmake will install multiple headers.
+  DESTDIR="${pkgdir}" meson install -C meson-build
+  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