X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=image%2Fbase%2Finstall-pngquant;h=ec7bd06d4a0302f48380540b660103c8f6f88f33;hb=fb65fc275ca328013bf576f1fe33f2ce17e8ffbb;hp=57d766915cfe4f42659d1ce2f8eb61f924549346;hpb=3fe4e441cc5e05cefe736bce5262244cab314bbe;p=discourse_docker.git diff --git a/image/base/install-pngquant b/image/base/install-pngquant index 57d7669..ec7bd06 100755 --- a/image/base/install-pngquant +++ b/image/base/install-pngquant @@ -1,11 +1,12 @@ #!/bin/bash -VERSION=2.8.0 +set -e + +# version check: https://pngquant.org/ +VERSION=2.12.5 + cd /tmp -wget https://github.com/pornel/pngquant/archive/$VERSION.tar.gz -tar zxf $VERSION.tar.gz -cd pngquant-$VERSION -./configure +git clone -b $VERSION --single-branch https://github.com/pornel/pngquant +cd pngquant make && make install cd / rm -fr /tmp/pngq* -rm -fr /tmp/$VERSION*