From a65415ea3f660e030a758873b43baaed04ece644 Mon Sep 17 00:00:00 2001 From: ciciwu Date: Fri, 29 Apr 2022 11:15:45 +0800 Subject: [PATCH] set scipy to an optional dependency only for mingw-w64 --- mingw-w64-python-pyqtgraph/PKGBUILD | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mingw-w64-python-pyqtgraph/PKGBUILD b/mingw-w64-python-pyqtgraph/PKGBUILD index 8f86c38425..f90f7acdef 100644 --- a/mingw-w64-python-pyqtgraph/PKGBUILD +++ b/mingw-w64-python-pyqtgraph/PKGBUILD @@ -5,12 +5,14 @@ pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=0.12.4 pkgrel=1 -pkgdesc='A pure-Python graphics library for PyQt5/PyQt6/PySide2/PySide6.' +pkgdesc='Scientific Graphics and GUI Library for Python.' arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32') url="https://www.pyqtgraph.org/" license=('MIT') -depends=("${MINGW_PACKAGE_PREFIX}-python-pyqt5" "${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-numpy" "${MINGW_PACKAGE_PREFIX}-python-scipy" "${MINGW_PACKAGE_PREFIX}-python-pyopengl") +depends=("${MINGW_PACKAGE_PREFIX}-python-pyqt5" "${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-numpy" "${MINGW_PACKAGE_PREFIX}-python-pyopengl" +$([[ "$_enable_scipy" == "yes" ]] && echo "${MINGW_PACKAGE_PREFIX}-python-scipy")) +# "${MINGW_PACKAGE_PREFIX}-python-scipy" is optional makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") source=("https://github.com/pyqtgraph/pyqtgraph/archive/refs/tags/pyqtgraph-${pkgver}.tar.gz") sha256sums=('5b3140b0f2efc4e821fe101baf72279e277b3d216cbd65ba0195c7ffb4029394')