blob: c879f1507d623503078d9914b8a2a188cb81c3d5 (
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
|
pkgname=python-fipy
pkgver=3.4.5
pkgrel=1
pkgdesc="Partial differential equation solver for Python, based on finite volume approach."
arch=('any')
url="http://www.ctcms.nist.gov/fipy"
license=('custom:Public Domain')
makedepends=('python-setuptools' 'python')
depends=('python' 'python-numpy' 'python-scipy' 'python-matplotlib' 'python-future')
optdepends=('gmsh: creation of irregular meshes')
source=("fipy-$pkgver.tar.gz::https://github.com/usnistgov/fipy/releases/download/${pkgver}/FiPy-${pkgver}.tar.gz")
sha256sums=('973d0fde055f5b4bb5155beecaae1804021b3383a44ff6e792a5d9dc71e10b94')
prepare(){
cp -R fipy-${pkgver} fipy-${pkgver}-py3
cd fipy-${pkgver}-py3
2to3 --write . || true
2to3 --write --doctests_only . || true
}
package() {
cd "${srcdir}/fipy-${pkgver}-py3"
# fix building by removing ez_setup references
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
chmod 644 ${pkgdir}/usr/lib/python*/site-packages/FiPy-${pkgver}-py*.egg-info/*
install -Dm644 "${srcdir}/fipy-${pkgver}/LICENSE.rst" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et tw=0:
|