blob: a0c04488757921c1ca4cfa9da03a34246177edae (
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
35
36
37
38
39
|
# Contributor: Nick Black <dankamongmen@gmail.com>
# This is a headers-only implementaiton; there are no libraries.
pkgname=nlohmann-json-dev
pkgver=3.5.0
pkgrel=0
pkgdesc="JSON for Modern C++"
url="https://github.com/nlohmann/json"
arch="noarch"
license="MIT"
depends=""
makedepends="doxygen"
install=""
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() {
cd "$builddir"
make -C doc
}
check() {
cd "$builddir"
make check-fast
}
package() {
cd "$builddir"
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="e2874e10e12070e8e1b9c01f41ce24002a3859c4aca8bf46083ea08e68f44ed6725bdcdf8e592b1e50d69975d506836c62a8e10fc6da00f0844c149dd6676996 nlohmann-json-3.5.0.tar.gz"
|