gis/Geohash: Python 3 by default.

This commit is contained in:
Benjamin Trigona-Harany 2018-11-12 17:27:31 -08:00 committed by Willy Sudiarto Raharjo
parent 4fd6efbb43
commit 52a20c6c69
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 7 additions and 8 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for Geohash
# Copyright 2016 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# Copyright 2016-2018 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -69,17 +69,16 @@ 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 {} \;
python setup.py install --root=$PKG
if $(python3 -c 'import sys' 2>/dev/null); then
sed -i "s/from geohash/from .geohash/" $PRGNAM/__init__.py
python3 setup.py install --root=$PKG
fi
python2 setup.py install --root=$PKG
python3 setup.py install --root=$PKG
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.txt README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
LICENSE.txt README.rst \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -5,6 +5,6 @@ DOWNLOAD="https://pypi.python.org/packages/source/G/Geohash/Geohash-1.0.tar.gz"
MD5SUM="a7c4e57874061fae1e30dd8aa8b9b390"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
REQUIRES="python3"
MAINTAINER="Benjamin Trigona-Harany"
EMAIL="slackbuilds@jaxartes.net"