mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 09:37:14 +08:00
37 lines
1.1 KiB
Bash
Executable File
37 lines
1.1 KiB
Bash
Executable File
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=python-numpy
|
|
pkgver=1.6.2
|
|
pkgrel=1
|
|
pkgdesc="Scientific tools for Python"
|
|
arch=('i686' 'x86_64')
|
|
license=('custom')
|
|
url="http://numpy.scipy.org/"
|
|
depends=('blas' 'lapack' 'python2')
|
|
makedepends=('python-nose' 'gcc-fortran')
|
|
optdepends=('python-nose: test suite')
|
|
source=(http://downloads.sourceforge.net/numpy/numpy-${pkgver}.tar.gz)
|
|
md5sums=('95ed6c9dcc94af1fc1642ea2a33c1bba')
|
|
|
|
build() {
|
|
cd "${srcdir}/numpy-${pkgver}"
|
|
export Atlas=None
|
|
export LDFLAGS="$LDFLAGS -shared"
|
|
python2 setup.py config_fc --fcompiler=gnu95 build
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/numpy-${pkgver}"
|
|
python2 setup.py config_fc --fcompiler=gnu95 install --prefix=/usr --root="${pkgdir}" --optimize=1
|
|
|
|
install -m755 -d "${pkgdir}/usr/share/licenses/python-numpy"
|
|
install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-numpy/"
|
|
|
|
sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
|
|
-e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
|
|
-e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
|
|
$(find ${pkgdir} -name '*.py')
|
|
} |