From 7c74907c8fb0683f3ae58501df4ced3e66b35f51 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Thu, 27 Oct 2016 00:51:12 +0300 Subject: system/slpkg: Updated for version 3.2.2. Signed-off-by: Dimitris Zlatanidis --- system/slpkg/slpkg.SlackBuild | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'system/slpkg/slpkg.SlackBuild') diff --git a/system/slpkg/slpkg.SlackBuild b/system/slpkg/slpkg.SlackBuild index 735e682df2..e31207da55 100644 --- a/system/slpkg/slpkg.SlackBuild +++ b/system/slpkg/slpkg.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=slpkg -VERSION=${VERSION:-3.2.0} +VERSION=${VERSION:-3.2.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -56,6 +56,9 @@ fi set -e +PYTHON=python +[ "${PYTHON3:-no}" = "yes" ] && PYTHON=python3 + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -72,7 +75,13 @@ find -L . \ # avoid install configuration files and man page over setup.py sed -i 's/if "install"/if ""/' setup.py -python setup.py install --root=$PKG +# Python 3 support +if [ "$PYTHON3" = "yes" ]; then + sh convert-py3k + cd py3k/$PRGNAM +fi + +$PYTHON 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 -- cgit v1.2.3