2018-12-05 13:31:06 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
#GLOBIGNORE=$0; rm -rf *
|
2016-11-10 14:59:18 +01:00
|
|
|
|
2019-06-27 09:39:41 +02:00
|
|
|
DOMPDF_VERSION=0.8.3
|
2018-12-05 13:31:06 +01:00
|
|
|
PHP_FONTLIB_VERSION=0.5.1
|
|
|
|
PHP_SVGLIB_VERSION=0.3.2
|
|
|
|
|
|
|
|
rm -rf lib/ src/
|
|
|
|
|
2019-06-27 09:39:41 +02:00
|
|
|
curl -LsS https://github.com/dompdf/dompdf/archive/v"$DOMPDF_VERSION".tar.gz -o /tmp/dompdf.tar.gz
|
2018-12-05 13:31:06 +01:00
|
|
|
tar xf /tmp/dompdf.tar.gz --strip-components 1 dompdf-"$DOMPDF_VERSION"/{lib,src,LICENSE.LGPL}
|
|
|
|
rm /tmp/dompdf.tar.gz
|
2014-12-29 16:31:21 +01:00
|
|
|
mv LICENSE.LGPL LICENSE
|
2014-11-13 20:09:27 +01:00
|
|
|
|
2018-12-05 13:31:06 +01:00
|
|
|
curl -LsS https://github.com/PhenX/php-font-lib/archive/"$PHP_FONTLIB_VERSION".tar.gz -o /tmp/php-font-lib.tar.gz
|
|
|
|
[ -d lib/php-font-lib ] || mkdir -p lib/php-font-lib
|
|
|
|
tar xf /tmp/php-font-lib.tar.gz --strip-components 1 -C lib/php-font-lib php-font-lib-"$PHP_FONTLIB_VERSION"/{src,LICENSE}
|
|
|
|
rm /tmp/php-font-lib.tar.gz
|
2016-11-10 14:59:18 +01:00
|
|
|
|
2018-12-05 13:31:06 +01:00
|
|
|
curl -LsS https://github.com/PhenX/php-svg-lib/archive/v"$PHP_SVGLIB_VERSION".tar.gz -o /tmp/php-svg-lib.tar.gz
|
|
|
|
[ -d lib/php-svg-lib ] || mkdir -p lib/php-svg-lib
|
|
|
|
tar xf /tmp/php-svg-lib.tar.gz --strip-components 1 -C lib/php-svg-lib php-svg-lib-"$PHP_SVGLIB_VERSION"/src
|
|
|
|
rm /tmp/php-svg-lib.tar.gz
|