Files
ports/extra/python2-pillow/spkgbuild
2019-01-16 22:19:50 +08:00

18 lines
508 B
Plaintext

# description : Python Imaging Library (PIL) fork (python2)
# depends : python2 python2-setuptools freetype2
name=python2-pillow
version=5.4.1
release=1
source=(https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-$version.tar.gz)
md5sum=(f7d0ce066fc7ea7a685739227887aeaf)
build() {
cd Pillow-$version
python2 setup.py build
python2 setup.py install --root="$PKG" --optimize=1
install -dm755 "$PKG/usr/include/python2.7/"
install -m644 -t "$PKG/usr/include/python2.7/" src/libImaging/*.h
}