JJB jobs for the OpFlex project
[releng/builder.git] / jjb / opflex / include-raw-rapidjson_tgz-build.sh
1 #!/bin/bash
2 # Build script for rapidjson
3
4 set -e
5 set -x
6
7 ROOT=/tmp/opflex-prefix
8 DESTDIR=install-root
9
10 mkdir -p "$DESTDIR/$ROOT/lib/pkgconfig"
11 mkdir -p "$DESTDIR/$ROOT/include"
12
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.1|" RapidJSON.pc.in > \
17     "$DESTDIR/$ROOT/lib/pkgconfig/RapidJSON.pc"
18
19 pushd $DESTDIR
20 tar -czf rapidjson.tgz *