mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-29 02:11:16 +02:00
52 lines
1.7 KiB
Plaintext
52 lines
1.7 KiB
Plaintext
# Contributor: Francesco Colista <francesco.colista@gmail.com>
|
|
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
|
|
pkgname=py-numpy
|
|
_pkgname=numpy
|
|
pkgver=1.8.1
|
|
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="be95babe263bfa3428363d6db5b64678 numpy-1.8.1.tar.gz
|
|
6f15bb8fe3d12faa8983a9e18bbea2a9 site.cfg"
|
|
sha256sums="3d722fc3ac922a34c50183683e828052cd9bb7e9134a95098441297d7ea1c7a9 numpy-1.8.1.tar.gz
|
|
8aa71c1aec2a9fdf6ab6167c92e86bdaf27f9a263b6b9849097ec7dcdf6d91a3 site.cfg"
|
|
sha512sums="39ef9e13f8681a2c2ba3d74ab96fd28c5669e653308fd1549f262921814fa7c276ce6d9fb65ef135006584c608bdf3db198d43f66c9286fc7b3c79803dbc1f57 numpy-1.8.1.tar.gz
|
|
21ca8db304cbbf5949f07702f2a42bb5e5a0d641921e36649555a41b0e48f04e96f53760417823177ac27f6de24b2191e6e1d5f0eb393beafa29f7484e23284f site.cfg"
|