diff options
author | David Spencer <baildon.research@googlemail.com> | 2018-02-24 15:01:55 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-03-03 08:42:06 +0700 |
commit | 188a6db96c886b37a36cd5d7951356a090fe36a8 (patch) | |
tree | 4f0b82cd0d2ae8b611be3fa5a93edbbd7946c758 /gis/gdal/gdal.SlackBuild | |
parent | ac29f11f3121063912f4d3b4f16a087d700bb195 (diff) |
gis/gdal: Add python3 support.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'gis/gdal/gdal.SlackBuild')
-rw-r--r-- | gis/gdal/gdal.SlackBuild | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gis/gdal/gdal.SlackBuild b/gis/gdal/gdal.SlackBuild index 3e16baad697bb..be5ff762f8717 100644 --- a/gis/gdal/gdal.SlackBuild +++ b/gis/gdal/gdal.SlackBuild @@ -143,6 +143,14 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +if $(python3 -c 'import sys' 2>/dev/null); then + cd swig/python + rm -rf build + python3 setup.py build + python3 setup.py install --root=$PKG --prefix=/usr + cd - >/dev/null +fi + find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |