aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-scipy/APKBUILD
blob: 9ed3b2154ee4da0a6a3ea2840a88b5894c138533 (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
# Contributor: Martell Malone <martellmalone@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=py3-scipy
pkgver=1.3.1
pkgrel=1
pkgdesc="Python library for scientific computing"
url="https://www.scipy.org"
arch="all"
license="BSD-3-Clause"
depends="py3-numpy-f2py"
makedepends="cython gfortran openblas-dev>=0.3.0 py3-numpy-dev py3-setuptools
	python3-dev"
source="https://github.com/scipy/scipy/releases/download/v$pkgver/scipy-$pkgver.tar.xz"
builddir="$srcdir"/scipy-$pkgver

replaces=py-scipy # Backwards compatibility
provides=py-scipy=$pkgver-r$pkgrel # Backwards compatibility

build() {
	export LDFLAGS="$LDFLAGS -shared"
	python3 setup.py config_fc --fcompiler=gnu95 build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="602c9d447f0efde332048261a066e2c9e3b6c4a6797554b9d17ddcc4e22c03e0fb07e8503b9566e30e23ecb6ba344caa03f2e64010945e0c138e2002806d1580  scipy-1.3.1.tar.xz"