diff options
Diffstat (limited to 'gis/python3-xarray')
-rw-r--r-- | gis/python3-xarray/python3-xarray.SlackBuild | 30 | ||||
-rw-r--r-- | gis/python3-xarray/python3-xarray.info | 8 |
2 files changed, 13 insertions, 25 deletions
diff --git a/gis/python3-xarray/python3-xarray.SlackBuild b/gis/python3-xarray/python3-xarray.SlackBuild index 9b7dc0b4e7..92d7f121e6 100644 --- a/gis/python3-xarray/python3-xarray.SlackBuild +++ b/gis/python3-xarray/python3-xarray.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for python3-xarray # Copyright 2018-2020 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> -# Copyright 2022 Gregory J. L. Tourte <artourter@gmail.com> +# Copyright 2022-2024 Gregory J. L. Tourte <artourter@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-xarray -VERSION=${VERSION:-2022.09.0} +VERSION=${VERSION:-2024.03.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -53,20 +53,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -77,12 +63,14 @@ tar xvf $CWD/$SRCNAM-$VERSION.tar.gz cd $SRCNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + + +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages/ -python3 setup.py install --root=$PKG +python3 -m build --wheel --no-isolation +python3 -m installer --destdir "$PKG" dist/*.whl find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/gis/python3-xarray/python3-xarray.info b/gis/python3-xarray/python3-xarray.info index bfe54b8a26..5bd43896ba 100644 --- a/gis/python3-xarray/python3-xarray.info +++ b/gis/python3-xarray/python3-xarray.info @@ -1,10 +1,10 @@ PRGNAM="python3-xarray" -VERSION="2022.09.0" +VERSION="2024.03.0" HOMEPAGE="http://xarray.pydata.org" -DOWNLOAD="https://github.com/pydata/xarray/archive/v2022.09.0/xarray-2022.09.0.tar.gz" -MD5SUM="61fe61d689214fa2619721c7b8a044f3" +DOWNLOAD="https://github.com/pydata/xarray/archive/v2024.03.0/xarray-2024.03.0.tar.gz" +MD5SUM="af81c70f069c3adb95acde6ffd7fdac1" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="python3-pandas" +REQUIRES="python3-pandas python3-setuptools-scm-opt" MAINTAINER="ArTourter" EMAIL="artourter@gmail.com" |