1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/bin/bash
tmp=`mktemp -q`
case `dpkg-architecture -qDEB_HOST_ARCH` in
arm64 | ppc64el | loongarch64)
export CXX=g++-14
;;
*)
;;
esac
dh_auto_configure --buildsystem=cmake --builddirectory=build
cd build/tests
make VERBOSE=true
cd ../..
find build ! -type d -a -name "libgraphite2.so.*" -exec rm {} \;
find build ! -type d -a -name "gr2fonttest" -exec rm {} \;
cd build/tests
perl -pi -e 's,\"--graphite_library=.*\d.\d.\d\",,g' CTestTestfile.cmake
perl -pi -e 's,\".*/gr2fonttest\",\"/usr/bin/gr2fonttest\",g' \
CTestTestfile.cmake
grep -v PYTHONPATH CTestTestfile.cmake > $tmp && mv $tmp CTestTestfile.cmake
export CTEST_OUTPUT_ON_FAILURE=True
make test VERBOSE=true
|