# Description: A fast JSON parser/generator for C++ with both SAX/DOM style API # URL: https://github.com/miloyip/rapidjson # Maintainer: Tim Biermann, tbier at posteo dot de # Depends on: cmake name=rapidjson version=1.1.0 release=2 source=(https://github.com/Tencent/rapidjson/archive/v$version/$name-$version.tar.gz) build() { find -name CMakeLists.txt | xargs sed -e 's|-Werror||' -i # Don't use -Werror [[ -e /usr/lib/ccache ]] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')" cmake -S$name-$version -Bbuild \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DRAPIDJSON_BUILD_DOC=OFF \ -DRAPIDJSON_BUILD_EXAMPLES=OFF \ -DRAPIDJSON_BUILD_TESTS=OFF cmake --build build DESTDIR=$PKG cmake --install build rm -r $PKG/usr/share/doc }