2 # Build script for rapidjson
7 ROOT=/tmp/opflex-prefix
10 mkdir -p "$DESTDIR/$ROOT/lib/pkgconfig"
11 mkdir -p "$DESTDIR/$ROOT/include"
13 cp -R include/rapidjson "$DESTDIR/$ROOT/include"
14 sed -e "s|@INCLUDE_INSTALL_DIR@|$ROOT/include|" \
15 -e "s|@PROJECT_NAME@|RapidJSON|" \
16 -e "s|@LIB_VERSION_STRING@|1.0.2|" RapidJSON.pc.in > \
17 "$DESTDIR/$ROOT/lib/pkgconfig/RapidJSON.pc"
20 tar -czf rapidjson.tgz *