mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 23:22:24 +01:00
35 lines
935 B
Plaintext
35 lines
935 B
Plaintext
# 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"
|