blob: 01733cd9f6950b848f738255fdb28f04440fd9b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Contributor: Nick Black <dankamongmen@gmail.com>
# This is a headers-only implementaiton; there are no libraries.
pkgname=nlohmann-json
pkgver=3.6.1
pkgrel=1
pkgdesc="JSON for Modern C++"
url="https://github.com/nlohmann/json"
arch="noarch"
license="MIT"
makedepends="doxygen"
subpackages="nlohmann-json-doc"
source="nlohmann-json-$pkgver.tar.gz::https://github.com/nlohmann/json/archive/v$pkgver.tar.gz"
builddir="$srcdir/json-$pkgver"
build() {
make -C doc
}
check() {
if [ "$CARCH" != "s390x" ]; then make check-fast; fi
}
package() {
mkdir -p "$pkgdir/usr/include"
mv include/nlohmann "$pkgdir/usr/include"
}
doc() {
cd "$builddir"
mkdir -p "$subpkgdir/usr/share/doc/nlohmann-json"
mv README.md doc/html "$subpkgdir/usr/share/doc/nlohmann-json"
}
sha512sums="e0565ccdee34e89a6836a97f039c04a0bac445b44f6f323918ea424b34e4577688a4f4f72d5ef1ec0b53d159bfe87e8e9c97b70ef98231ea463f59f05e16eb2a nlohmann-json-3.6.1.tar.gz"
|