blob: b404c20aa1553201ea0fc78e95404eb6e054e7c2 (
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
40
41
42
43
44
45
46
47
|
# Maintainer: zayn7lie <zayn7lie.ber7+git@gmail.com>
pkgname=python-hiermat
_pkgname=HierMat
_python=python
pkgver=0.9.2
pkgrel=2
pkgdesc="An implementation in Python of the concept of hierarchical matrices as described by W. Hackbusch."
arch=('any')
url="https://github.com/maekke97/HierarchicalMatrices"
license=('GPL3')
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
depends=(
'python-matplotlib'
'python-numpy'
'python-scipy'
'python-sphinxcontrib-bibtex'
)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('7ae7777df448d7e42078aa66fab6893c20b421e62b320089243f7259adef322f')
prepare() {
# The reason creating `prepare()` is that the author did not
# specify the dir in __init__.py causing bugs
cd $_pkgname-$pkgver
sed -i 's/from /from ./g' HierMat/__init__.py
}
build() {
cd $_pkgname-$pkgver
python -m build --wheel
#$_python setup.py build
}
package() {
cd $_pkgname-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
#$_python setup.py install
}
|