aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-numpy/APKBUILD
blob: 8738abb5cafb2fdb7fb4bfca344dd2142122918e (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-numpy
_pkgname=numpy
pkgver=1.11.1
pkgrel=0
pkgdesc="Scientific tools for Python"
url="http://numpy.scipy.org/"
arch="all"
license="BSD"
depends="gfortran"
depends_dev="python-dev openblas-dev py-setuptools py-nose cython-dev py-numpy"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.gz
	numpy-1.11.0-musl.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="2f44a895a8104ffac140c3a70edbd450  numpy-1.11.1.tar.gz
a1ad56975b7d307d7c62cfb06963322b  numpy-1.11.0-musl.patch
6f15bb8fe3d12faa8983a9e18bbea2a9  site.cfg"
sha256sums="dc4082c43979cc856a2bf352a8297ea109ccb3244d783ae067eb2ee5b0d577cd  numpy-1.11.1.tar.gz
e94f8d85b08de300a7402c8f4c7f6badbeb88964f45890c6c1aabfed9e3e1b88  numpy-1.11.0-musl.patch
8aa71c1aec2a9fdf6ab6167c92e86bdaf27f9a263b6b9849097ec7dcdf6d91a3  site.cfg"
sha512sums="4df9247c651b4fdeb51e94910d97cfceaa81e5acb81cb761dae6ccf8e78891ebe0ca67ed095b11d66fe52d64e6ea5328e72c124e5dcd8d6a7a98007ef60c55b2  numpy-1.11.1.tar.gz
f8820c08754b5521e1a30b602bf87667459c96c1abfa78a4f54331c19ceec5e2f3108a20ba09fdf8089087296a4836dc32b2b47022efd90ade3de568aef9a1a7  numpy-1.11.0-musl.patch
21ca8db304cbbf5949f07702f2a42bb5e5a0d641921e36649555a41b0e48f04e96f53760417823177ac27f6de24b2191e6e1d5f0eb393beafa29f7484e23284f  site.cfg"