aboutsummaryrefslogblamecommitdiffstats
path: root/main/py3-pillow/APKBUILD
blob: e5874205bcc7b60114e12b0b724b05a38430353a (plain) (tree)
1
2
3
4
5


                                                               
            
        









                                                                                                  


                                                                                     
                                 




                                                               

                      





















                                                               

                                                                                                                                                                 
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-pillow
pkgver=7.1.2
pkgrel=1
pkgdesc="Python Imaging Library"
options="!check"
url="https://python-pillow.org/"
arch="all"
license="custom:PIL"
depends="py3-olefile"
makedepends="python3-dev py3-setuptools freetype-dev
	openjpeg-dev libimagequant-dev libwebp-dev tiff-dev libpng-dev lcms2-dev libjpeg-turbo-dev
	libwebp-dev libxcb-dev zlib-dev"
checkdepends="py3-pytest py3-numpy"
source="https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-$pkgver.tar.gz
	CVE-2020-35655.patch
	"
builddir="$srcdir/Pillow-$pkgver"

provides="py-pillow=$pkgver-r$pkgrel" # backwards compatibility
replaces="py-pillow" # backwards compatiblity

# secfixes:
#   7.1.2-r1:
#     - CVE-2020-35655
#   6.2.2-r0:
#     - CVE-2019-19911
#     - CVE-2020-5310
#     - CVE-2020-5311
#     - CVE-2020-5312
#     - CVE-2020-5313

build() {
	# zlib resides in lib
	export CFLAGS="$CFLAGS -L/lib"
	python3 setup.py build
}

check() {
	python3 setup.py test
	python3 selftest.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="75d88c5c967d600b84caf9af62eeda6f235fb1357ba7ca47656be6d48018f2df6f2442df2d2ea50d4cc0955f55dce05c2e2676f9b4bca5aa72bfda61e407dd97  Pillow-7.1.2.tar.gz
89984ca666bafc356ba8af50a3f96dc84965b882577f488c10550558a316982c52378bf52ec24b5ed53a4f8b1019e9e5e03bbff6e32c4009ea8ef71093f33f18  CVE-2020-35655.patch"