contrib/rapidjson/Pkgfile

24 lines
821 B
Plaintext
Raw Normal View History

# 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
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
rm -r $PKG/usr/share/doc
}