Browse Source

l/python-geoip2: Upgraded to python-geoip2-3.0.0.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
55b4a337f6
  1. 1
      l/python-geoip2/geoip2-2.9.0.tar.gz.sha256
  2. 1
      l/python-geoip2/geoip2-3.0.0.tar.gz.sha256
  3. 19
      l/python-geoip2/python-geoip2.SlackBuild

1
l/python-geoip2/geoip2-2.9.0.tar.gz.sha256

@ -1 +0,0 @@
f7ffe9d258e71a42cf622ce6350d976de1d0312b9f2fbce3975c7d838b57ecf0 geoip2-2.9.0.tar.gz

1
l/python-geoip2/geoip2-3.0.0.tar.gz.sha256

@ -0,0 +1 @@
5869e987bc54c0d707264fec4710661332cc38d2dca5a7f9bb5362d0308e2ce0 geoip2-3.0.0.tar.gz

19
l/python-geoip2/python-geoip2.SlackBuild

@ -24,12 +24,13 @@
#
# Latest geoip2 sourcecode is available at:
# <https://pypi.org/project/geoip2/>.
#
# Depends: l/python-maxminddb
# Source package infos
NAMESRC=${NAMESRC:-geoip2}
VERSION=${VERSION:-2.9.0}
VERSION=${VERSION:-3.0.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/2e/68/44a14494b019a0b05a581608ae1962363a757722d4db6b8c1e2445817e19/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-geoip2}
@ -58,8 +59,7 @@ fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -69,8 +69,10 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
@ -80,6 +82,11 @@ mv docs/html $PKG/usr/doc/$NAMEPKG-$VERSION/html
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat > $PKG/install/slack-required <<EOF
python-maxminddb
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save