Pillow/depends/install_imagequant.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
380 B
Bash
Raw Normal View History

2016-05-06 18:33:07 +03:00
#!/bin/bash
# install libimagequant
2023-10-14 01:09:10 +03:00
archive=libimagequant-4.2.2
2016-05-06 18:33:07 +03:00
2021-10-15 17:30:05 +03:00
./download-and-extract.sh $archive https://raw.githubusercontent.com/python-pillow/pillow-depends/main/$archive.tar.gz
2022-02-03 10:05:50 +03:00
pushd $archive/imagequant-sys
2016-05-06 18:33:07 +03:00
2022-02-03 10:05:50 +03:00
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/
2016-05-06 18:33:07 +03:00
popd