community/python-matplotlib: fix

This commit is contained in:
Kevin Mihelich 2020-07-20 15:31:20 +00:00
parent 663ddc64ab
commit e8070ae909

View file

@ -7,6 +7,7 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - replace make/optdepends on python{,2}-cairocffi with python{,2}-cairo (cffi has haskell dep)
# - disable lto via setup.cfg
pkgname=python-matplotlib
pkgver=3.3.0
@ -40,6 +41,15 @@ checkdepends=(python-pytest-xdist python-pytest-runner xorg-server-xvfb
source=("https://github.com/matplotlib/matplotlib/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('79555a175ef1e63da4f3d2457dc44dd825dbe4b5833696fa9ba57bfc654dc4df286ede4357ee276f19d674be1cb622e8718000a74c1f122cc13641f4d3ad0ada')
prepare() {
cd matplotlib-${pkgver}
cat > setup.cfg <<END
[egg_info]
[libs]
enable_lto = False
END
}
build() {
cd matplotlib-${pkgver}
python setup.py build