mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
gis/geographiclib-python: Update for 2.0 (+new maintainer)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
feb947ff23
commit
c59303b932
2 changed files with 9 additions and 27 deletions
|
@ -3,6 +3,7 @@
|
||||||
# SlackBuild for geographiclib-python
|
# SlackBuild for geographiclib-python
|
||||||
#
|
#
|
||||||
# Copyright 2016-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
|
# Copyright 2016-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
|
||||||
|
# Copyright 2024 Isaac Yu <isaacyu@protonmail.com>
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
# permitted provided that the following conditions are met:
|
# permitted provided that the following conditions are met:
|
||||||
|
@ -24,8 +25,8 @@
|
||||||
cd $(dirname $0) ; CWD=$(pwd)
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=geographiclib-python
|
PRGNAM=geographiclib-python
|
||||||
VERSION=${VERSION:-1.50}
|
VERSION=${VERSION:-2.0}
|
||||||
BUILD=${BUILD:-3}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
PKGTYPE=${PKGTYPE:-tgz}
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
|
||||||
|
@ -39,9 +40,6 @@ if [ -z "$ARCH" ]; then
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
|
||||||
# the name of the created package would be, and then exit. This information
|
|
||||||
# could be useful to other scripts.
|
|
||||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -51,22 +49,6 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
JOBS=${JOBS:-1}
|
|
||||||
|
|
||||||
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
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="geographiclib-python"
|
PRGNAM="geographiclib-python"
|
||||||
VERSION="1.50"
|
VERSION="2.0"
|
||||||
HOMEPAGE="http://geographiclib.sourceforge.net/1.50/python/"
|
HOMEPAGE="https://geographiclib.sourceforge.io/Python/doc/"
|
||||||
DOWNLOAD="https://files.pythonhosted.org/packages/source/g/geographiclib/geographiclib-1.50.tar.gz"
|
DOWNLOAD="https://files.pythonhosted.org/packages/source/g/geographiclib/geographiclib-2.0.tar.gz"
|
||||||
MD5SUM="06cb02d3e8d84383f7d040c2df13e8ea"
|
MD5SUM="bfdd8a1081acda1ecec6c0140704768f"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
MAINTAINER="Benjamin Trigona-Harany"
|
MAINTAINER="Isaac Yu"
|
||||||
EMAIL="slackbuilds@jaxartes.net"
|
EMAIL="isaacyu@protonmail.com"
|
||||||
|
|
Loading…
Reference in a new issue