# Template file for 'rapidjson' pkgname=rapidjson version=1.1.0 revision=6 build_style=cmake short_desc="Fast JSON parser/generator for C++ with both SAX/DOM style API" maintainer="Alexander Egorenkov " license="BSD-3-Clause, MIT" homepage="https://github.com/Tencent/rapidjson" distfiles="https://github.com/Tencent/${pkgname}/archive/v${version}.tar.gz" checksum=bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e # class-memaccess is required by https://github.com/Tencent/rapidjson/issues/1700 CXXFLAGS="-Wno-type-limits -Wno-error=class-memaccess -Wno-error=effc++ -DNDEBUG" post_patch() { # Remove bin/jsonchecker, which is the JSON licensed files rm -rf bin/jsonchecker vsed -i license.txt \ -e 's/To avoid the problematic JSON.*//' \ -e '/Under the JSON License/,/OTHER DEALINGS IN THE SOFTWARE/d' } post_install() { vlicense license.txt }