aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-numpy/APKBUILD
blob: 965a7ffd7056337f08d93d6ce49359c8ba17f313 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-numpy
_pkgname=numpy
pkgver=1.10.1
pkgrel=1
pkgdesc="Scientific tools for Python"
url="http://numpy.scipy.org/"
arch="all"
license="BSD"
depends="gfortran"
depends_dev="python-dev openblas-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.gz
	numpy-1.10.0-musl.patch
	numpy-1.10.1-backport-1.patch
	numpy-1.10.1-backport-2.patch
	site.cfg"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		site.cfg) msg $i; cp "$srcdir"/$i ./ || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	export Atlas=None
	LDFLAGS="$LDFLAGS -shared"
	python setup.py build config_fc --fcompiler=gnu95  || return 1
}


package() {
	cd "$_builddir"
	python setup.py install  --prefix=/usr --root="$pkgdir" config_fc --fcompiler=gnu95  || return 1
	install -m755 -d "$pkgdir"/usr/share/licenses/custom/$pkgname
	install -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/custom/$pkgname/LICENSE
}

md5sums="3fed2b50906bc19018cec5fa26168aa5  numpy-1.10.1.tar.gz
e00075bed14f650030a8704db7fda6ee  numpy-1.10.0-musl.patch
aaa44b6c8af4abd24c286179c9b8e3c5  numpy-1.10.1-backport-1.patch
89cac7e57396369d802c9e696b7bd801  numpy-1.10.1-backport-2.patch
6f15bb8fe3d12faa8983a9e18bbea2a9  site.cfg"
sha256sums="8b9f453f29ce96a14e625100d3dcf8926301d36c5f622623bf8820e748510858  numpy-1.10.1.tar.gz
e4a84dab5561833299bb506acba2d1a5feea929af69bde56a10558612405f8ec  numpy-1.10.0-musl.patch
386920fcba91099aedfe0c8105aa53f10f596f62d300684d802397769ba9b1e1  numpy-1.10.1-backport-1.patch
ec6faad4e0105f3f291a43defed5c0f33ca669832589372a0b6ae92d9f5e4dd1  numpy-1.10.1-backport-2.patch
8aa71c1aec2a9fdf6ab6167c92e86bdaf27f9a263b6b9849097ec7dcdf6d91a3  site.cfg"
sha512sums="ea717bac913a8e63bf93822bddbfe7701a3de00051bf3c7020f5e22756987becb5a2f96a6a52a36fc7c2b856815a782e450099688ce86b21fa94b0076b9ef376  numpy-1.10.1.tar.gz
9f97a3f3e9890598444d78418cbc4aac75d06df8a10634bc94e8c346a70d3fb7efb45004cf0d5840646c7e72e2886234988ed01021b36ca87ed727470e44be75  numpy-1.10.0-musl.patch
359076cdf1962744f1e0381d6e690422787307400db6ca51fb8f759f6af459666e9b4aad278bf4e89848fea5277204eab9459edb092fc2d9aa8dab14096eefe9  numpy-1.10.1-backport-1.patch
8e1db75cd00209762b49f636549a4afccea1467f93b4ce94e02f3ada2f8be78a70fdfea51eb98a12690ef67b84734eb24d5a647def8022a4fddfc22cda4cb512  numpy-1.10.1-backport-2.patch
21ca8db304cbbf5949f07702f2a42bb5e5a0d641921e36649555a41b0e48f04e96f53760417823177ac27f6de24b2191e6e1d5f0eb393beafa29f7484e23284f  site.cfg"