diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 33 insertions, 24 deletions
@@ -1,19 +1,24 @@ pkgbase = python-diffractio - pkgdesc = Optical Diffraction and Interference (scalar and vectorial) + pkgdesc = Optical Diffraction and Interference pkgver = 0.0.13 - pkgrel = 1 - url = https://bitbucket.org/optbrea/diffractio/src/master/ + pkgrel = 2 + url = https://bitbucket.org/optbrea/diffractio arch = any license = MIT + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools makedepends = python-pytest-runner - depends = python - depends = python-click + makedepends = python-wheel depends = python-numpy depends = python-scipy depends = python-matplotlib - depends = python-nbsphinx - source = https://files.pythonhosted.org/packages/source/d/diffractio/diffractio-0.0.13.tar.gz + depends = python-screeninfo + depends = python-pillow + depends = python-numexpr + depends = python-pandas + depends = python-psutil + source = python-diffractio-0.0.13.tar.gz::https://files.pythonhosted.org/packages/source/d/diffractio/diffractio-0.0.13.tar.gz sha256sums = 5bfb2fa72a185aaab19c7d9b1f37a6f4617e28206bb6d6532c3fe399593e7fea pkgname = python-diffractio @@ -1,26 +1,30 @@ -# Maintainer: Philip <philip1731 protonmail ch> +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> +# Contributor: Philip <philip1731 protonmail ch> pkgname=python-diffractio +_pkg="${pkgname#python-}" pkgver=0.0.13 -pkgrel=1 -pkgdesc='Optical Diffraction and Interference (scalar and vectorial)' +pkgrel=2 +pkgdesc='Optical Diffraction and Interference' arch=('any') -url="https://bitbucket.org/optbrea/diffractio/src/master/" +url="https://bitbucket.org/optbrea/diffractio" license=('MIT') -depends=('python' - 'python-click' - 'python-numpy' - 'python-scipy' - 'python-matplotlib' - 'python-nbsphinx') -makedepends=('python-setuptools' - 'python-pytest-runner') -_name=${pkgname#python-} -source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +depends=( + 'python-numpy' 'python-scipy' 'python-matplotlib' 'python-screeninfo' 'python-pillow' + 'python-numexpr' 'python-pandas' 'python-py-pol' 'python-psutil') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-pytest-runner' 'python-wheel') +source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkg::1}/$_pkg/$_pkg-$pkgver.tar.gz") sha256sums=('5bfb2fa72a185aaab19c7d9b1f37a6f4617e28206bb6d6532c3fe399593e7fea') -package() { - cd "${srcdir}/diffractio-${pkgver}" - python setup.py install --root="$pkgdir/" --optimize=1 +build() { + cd "$_pkg-$pkgver" + python -m build --wheel --no-isolation } +package() { + cd "$_pkg-$pkgver" + PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl + local _site="$(python -c 'import site; print(site.getsitepackages()[0])')" + install -d "$pkgdir/usr/share/licenses/$pkgname/" + ln -s "$_site/$_pkg-$pkgver.dist-info/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/" +} |