# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka # Note: This package contains only header files. pkgname=rapidjson pkgver=1.1.0 pkgrel=0 pkgdesc="A fast JSON parser/generator for C++ with both SAX/DOM style API" url="http://rapidjson.org/" arch="noarch" license="MIT" depends_dev="cmake" makedepends="$depends_dev" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/miloyip/$pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DRAPIDJSON_BUILD_DOC=OFF \ -DRAPIDJSON_BUILD_EXAMPLES=OFF \ && make } package() { cd "$builddir" make install DESTDIR="$pkgdir" || return 1 # Remove examples and readme. rm -Rf "$pkgdir"/usr/share } sha512sums="2e82a4bddcd6c4669541f5945c2d240fb1b4fdd6e239200246d3dd50ce98733f0a4f6d3daa56f865d8c88779c036099c52a9ae85d47ad263686b68a88d832dff rapidjson-1.1.0.tar.gz"