diff options
author | Cristiano Urban <cristiano.urban.slack@gmail.com> | 2022-03-31 01:31:20 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-02 18:19:18 +0700 |
commit | 0d9c6586343efa58ad1fea439c52a471adbdbb9b (patch) | |
tree | 47026f1771ef555c8f60f9f05c6daa843929da1f /gis/python3-basemap/python3-basemap.SlackBuild | |
parent | 11493e8736751774c28b7bb7ed4f358fbe34c2e6 (diff) |
gis/python3-basemap: Updated for version 1.3.2.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis/python3-basemap/python3-basemap.SlackBuild')
-rw-r--r-- | gis/python3-basemap/python3-basemap.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/gis/python3-basemap/python3-basemap.SlackBuild b/gis/python3-basemap/python3-basemap.SlackBuild index 24558ad5b050e..71d5ab263d64f 100644 --- a/gis/python3-basemap/python3-basemap.SlackBuild +++ b/gis/python3-basemap/python3-basemap.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-basemap SRCNAM=basemap -VERSION=${VERSION:-1.2.2} +VERSION=${VERSION:-1.3.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -70,9 +70,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-${VERSION}rel -tar xvf $CWD/$SRCNAM-${VERSION}rel.tar.gz -cd $SRCNAM-${VERSION}rel +rm -rf $SRCNAM-${VERSION} +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 \ @@ -80,16 +80,26 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +cd packages/${SRCNAM} # regenerate cythonized sources # thanks arch linux maintainers cythonize --force src/_geoslib.pyx python3 setup.py install --root=$PKG +cd ${TMP}/${SRCNAM}-${VERSION} + +cd packages/${SRCNAM}_data +python3 setup.py install --root=$PKG +cd ${TMP}/${SRCNAM}-${VERSION} + +cd packages/${SRCNAM}_data_hires +python3 setup.py install --root=$PKG +cd ${TMP}/${SRCNAM}-${VERSION} 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE* README.md Changelog $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.md CHANGELOG.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |