Use pngcrush from package manager
[discourse_docker.git] / image / base / install-pngquant
index 49acdffb8fda320134810de485a263ef71b8e903..ec7bd06d4a0302f48380540b660103c8f6f88f33 100755 (executable)
@@ -1,11 +1,12 @@
 #!/bin/bash
-VERSION=2.6.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*