mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 22:37:14 +08:00
25 lines
791 B
Bash
Executable File
25 lines
791 B
Bash
Executable File
# Maintainer: Phil Miller <philm@chakra-project.org>
|
|
|
|
pkgname=python-numpy
|
|
pkgver=1.5.1
|
|
pkgrel=2
|
|
pkgdesc="Scientific tools for Python"
|
|
arch=('i686' 'x86_64')
|
|
license=('custom')
|
|
url="http://numpy.scipy.org/"
|
|
depends=('blas' 'lapack')
|
|
makedepends=('python-nose' 'gcc-fortran')
|
|
optdepends=('python-nose: test suite')
|
|
source=(http://downloads.sourceforge.net/numpy/numpy-${pkgver}.tar.gz)
|
|
md5sums=('376ef150df41b5353944ab742145352d')
|
|
|
|
build() {
|
|
cd "${srcdir}/numpy-${pkgver}"
|
|
export Atlas=None
|
|
export LDFLAGS="$LDFLAGS -shared"
|
|
python2 setup.py config_fc --fcompiler=gnu95 build || return 1
|
|
python2 setup.py config_fc --fcompiler=gnu95 install --prefix=/usr --root="${pkgdir}" || return 1
|
|
|
|
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
|
|
}
|