python/GeoIP-Python: enable Python3
Also, move from "libraries" to "python" category. The latter did not exist at the time this SlackBuild was added to SBo. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
3647060904
commit
b73cbb74f6
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for GeoIP-Python
|
||||
|
||||
# Copyright Dominik Drobek <dominik.drobek (at) o2.pl>
|
||||
# Copyright 2011, 2013, 2016, 2019 Dominik Drobek <dominik.drobek (at) o2.pl>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=GeoIP-Python
|
||||
VERSION=${VERSION:-1.3.2}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
DISTNAME=GeoIP
|
||||
|
@ -74,6 +74,10 @@ find -L . \
|
|||
|
||||
python setup.py install --root=$PKG
|
||||
|
||||
if $(python3 -c 'import sys' 2>/dev/null); then
|
||||
python3 setup.py install --root=$PKG
|
||||
fi
|
||||
|
||||
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
|
||||
|
|
@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
|
|||
MD5SUM_x86_64=""
|
||||
REQUIRES="GeoIP"
|
||||
MAINTAINER="Dominik Drobek"
|
||||
EMAIL="dominik.drobek@o2.pl"
|
||||
EMAIL="dominik.drobek (at) o2.pl"
|
Loading…
Reference in New Issue