blob: 0d18dea78f8e0f8396b993b14d9280413b198039 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Astro Benzene <universebenzene at sina dot com>
# Maintainer: Ista Zahn <istazahn@gmail.com>
pkgname=python-glue-qt
_pyname=glue_qt
pkgver=0.4.2
pkgrel=1
pkgdesc="Multidimensional data visualization across files -- main Qt library of GUI"
arch=('any')
url="http://glueviz.org"
license=('BSD-3-Clause')
depends=('python>=3.8' 'python-glue-core>=1.15.0' 'python-numpy>=1.17' 'python-matplotlib>=3.2'
'python-scipy>=1.1' 'python-echo>=0.6' 'python-astropy>=4.0' 'python-setuptools>=30.3.0'
'python-qtpy>=1.9' 'ipython>=4.0' 'python-ipykernel>5.1.0' 'python-qtconsole>5.4.2'
'python-pvextractor>=0.2' 'python-pyqt6' 'qt6-declarative' 'hicolor-icon-theme')
optdepends=('pyside2: alternative qt support'
'glueviz-doc: Documentation for Glueviz')
makedepends=('python-setuptools-scm'
'python-build'
'python-installer'
'desktop-file-utils')
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
sha256sums=('a50a2641c0cfc23081e1e76e0267c73fa6ba2eccc6151c9143bc5e603f4c5423')
build() {
cd ${srcdir}/${_pyname}-${pkgver}
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pyname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
install -Dm 644 glueviz.png -t "${pkgdir}/usr/share/icons/hicolor/256x256/apps"
desktop-file-install -m 644 --dir "${pkgdir}/usr/share/applications/" "glueviz.desktop"
}
|