mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
python/imagesize: Add python3 support.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
ef03b97f3c
commit
5210399b24
2 changed files with 9 additions and 3 deletions
|
@ -7,4 +7,6 @@ It parses image files’ header and return image size.
|
|||
JPEG2000
|
||||
GIF
|
||||
|
||||
This is a pure Python library.
|
||||
This is a pure Python library.
|
||||
|
||||
Optional dependency: python3 (automatically detected)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for imagesize
|
||||
|
||||
# Copyright 2017 Nikos Giotis <nikos.giotis@gmail.com>
|
||||
# Copyright 2017,2018 Nikos Giotis <nikos.giotis@gmail.com>, Athens, GR
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=imagesize
|
||||
VERSION=${VERSION:-0.7.1}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -71,6 +71,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
|
||||
|
||||
|
|
Loading…
Reference in a new issue