Pillow/depends/install_imagequant.sh

15 lines
306 B
Bash
Executable File

#!/bin/bash
# install libimagequant
archive=pngquant-2.6.0
./download-and-extract.sh $archive https://raw.githubusercontent.com/python-pillow/pillow-depends/master/$archive.tar.gz
pushd $archive
make -C lib shared
sudo cp lib/libimagequant.so* /usr/lib/
sudo cp lib/libimagequant.h /usr/include/
popd