mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
16 lines
380 B
Bash
Executable File
16 lines
380 B
Bash
Executable File
#!/bin/bash
|
|
# install libimagequant
|
|
|
|
archive=libimagequant-4.0.5
|
|
|
|
./download-and-extract.sh $archive https://raw.githubusercontent.com/python-pillow/pillow-depends/main/$archive.tar.gz
|
|
|
|
pushd $archive/imagequant-sys
|
|
|
|
cargo install cargo-c
|
|
cargo cinstall --prefix=/usr --destdir=.
|
|
sudo cp usr/lib/libimagequant.so* /usr/lib/
|
|
sudo cp usr/include/libimagequant.h /usr/include/
|
|
|
|
popd
|