aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-scipy/APKBUILD
blob: 970abdfd140f81dff1675f4296390916d8b042a8 (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
# Contributor: Martell Malone <martellmalone@gmail.com>
# Maintainer:
pkgname=py3-scipy
pkgver=1.6.2
pkgrel=1
pkgdesc="Python library for scientific computing"
url="https://www.scipy.org"
arch="all !mips !mips64"
license="BSD-3-Clause"
depends="py3-numpy-f2py"
makedepends="cython gfortran openblas-dev>=0.3.0 py3-numpy-dev py3-setuptools
	python3-dev lapack-dev py3-pybind11-dev"
source="https://github.com/scipy/scipy/releases/download/v$pkgver/scipy-$pkgver.tar.xz
	missing-int64_t.patch
	"
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="2253f257d5c55739a47759e039602dc542bd1a068c5883fd2a80a60bc7d3e8372d467d589ae2c83b9a847d0fb76c1fb841208213297db284f142fac98dd33b8e  scipy-1.6.2.tar.xz
df346dc84e4ec6773e1e7fe21dccf6d124c8a498d4daba77d3abd399fef1aa711b9799541c5e7b6b3ee209c738817cc2680810dcd2c4ee61686292536e6b00d1  missing-int64_t.patch"