aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-scipy/APKBUILD
blob: 242ecb48075d4a02efd2374e6333610245a46e82 (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
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=py-scipy
pkgver=0.19.0
pkgrel=0
pkgdesc="Python library for scientific computing"
url="http://www.scipy.org"
arch="all"
license="BSD"
depends="python2 py-numpy-f2py"
depends_dev="python2-dev gfortran py-numpy-dev openblas-dev"
makedepends="$depends_dev py-setuptools"
install=""
subpackages="$pkgname-dev"
source="https://files.pythonhosted.org/packages/source/s/scipy/scipy-$pkgver.zip"
builddir="$srcdir"/scipy-$pkgver

build() {
	cd "$builddir"
	export LDFLAGS="$LDFLAGS -shared"
	python2 setup.py config_fc \
		--fcompiler=gnu95 config || return 1
	python2 setup.py config_fc \
		--fcompiler=gnu95 build || return 1
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

sha512sums="3144bc14155ae790f2aba5ca6b22cbe5e7170ae1ad305774601ac22e479e1377197e47e3cd7033a5ca3464f5e944db91d3c4615111eb3369cbdd3f9079ae8c54  scipy-0.19.0.zip"