Browse Source

l/numpy: Upgraded to numpy-1.13.0.

slackware-14.2
Damien Goutte-Gattat 4 years ago
parent
commit
749b11f962
  1. 1
      l/numpy/numpy-1.11.1.tar.gz.sha1
  2. 1
      l/numpy/numpy-1.13.0.zip.sha256
  3. 19
      l/numpy/numpy.SlackBuild

1
l/numpy/numpy-1.11.1.tar.gz.sha1

@ -1 +0,0 @@
5fbfde55b1d4b07cc449b10395472ffa41ec00c1 numpy-1.11.1.tar.gz

1
l/numpy/numpy-1.13.0.zip.sha256

@ -0,0 +1 @@
dcff367b725586830ff0e20b805c7654c876c2d4585c0834a6049502b9d6cf7e numpy-1.13.0.zip

19
l/numpy/numpy.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008-2010,2012,2013,2015,2016 Damien Goutte-Gattat
# Copyright (C) 2008-2010,2012,2013,2015,2016,2018 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -28,9 +28,9 @@
# Source package infos
NAMESRC=${NAMESRC:-numpy}
VERSION=${VERSION:-1.11.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://downloads.sourceforge.net/numpy/$ARCHIVE}
VERSION=${VERSION:-1.13.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.zip}
WGET=${WGET:-https://pypi.python.org/packages/05/84/0feb999c05f252af50a5fbc463268044feda92cdaad8cb0d0a6073d76057/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-numpy}
@ -74,13 +74,13 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
sha256sum -c $ARCHIVE.sha256
NAME=$NAMESRC-$VERSION
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
unzip $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
@ -94,6 +94,11 @@ install -m 644 LICENSE.txt THANKS.txt $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat > $PKG/install/slack-required <<EOF
libatlas
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save