Skip to content
Snippets Groups Projects
Verified Commit a45b7f9c authored by Anna Wilcox's avatar Anna Wilcox :fox:
Browse files

user/json: New package

parent e8e4c45b
No related branches found
No related tags found
1 merge request!778Improve Wayland situation somewhat
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=json
pkgver=3.11.3
pkgrel=0
pkgdesc="JSON for Modern C++"
url="https://json.nlohmann.me/"
arch="noarch"
license="MIT"
depends=""
makedepends="cmake"
subpackages=""
source="json-$pkgver.tar.gz::https://github.com/nlohmann/json/archive/refs/tags/v$pkgver.tar.gz"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
${CMAKE_CROSSOPTS} \
-Bbuild
make DESTDIR="$pkgdir" -C build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=true ctest -E '(cmake_fetch*|test-unicode*)' -j${JOBS}
}
package() {
make DESTDIR="$pkgdir" -C build install
}
sha512sums="7df19b621de34f08d5d5c0a25e8225975980841ef2e48536abcf22526ed7fb99f88ad954a2cb823115db59ccc88d1dbe74fe6c281b5644b976b33fb78db9d717 json-3.11.3.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment