aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-numpy/APKBUILD
blob: 360c8443ba42082a85237eb0cac43ac8703ed463 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=py-numpy
_pkgname=numpy
pkgver=1.9.2
pkgrel=0
pkgdesc="Scientific tools for Python"
url="http://numpy.scipy.org/"
arch="all"
license="BSD"
depends="gfortran"
depends_dev="python-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.gz
	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="a1ed53432dbcd256398898d35bc8e645  numpy-1.9.2.tar.gz
6f15bb8fe3d12faa8983a9e18bbea2a9  site.cfg"
sha256sums="325e5f2b0b434ecb6e6882c7e1034cc6cdde3eeeea87dbc482575199a6aeef2a  numpy-1.9.2.tar.gz
8aa71c1aec2a9fdf6ab6167c92e86bdaf27f9a263b6b9849097ec7dcdf6d91a3  site.cfg"
sha512sums="70470ebb9afef5dfd0c83ceb7a9d5f1b7a072b1a9b54b04f04f5ed50fbaedd5b4906bd500472268d478f94df9e749a88698b1ff30f2d80258e7f3fec040617d9  numpy-1.9.2.tar.gz
21ca8db304cbbf5949f07702f2a42bb5e5a0d641921e36649555a41b0e48f04e96f53760417823177ac27f6de24b2191e6e1d5f0eb393beafa29f7484e23284f  site.cfg"