summaryrefslogtreecommitdiffstats
path: root/python/python-toml
diff options
context:
space:
mode:
author Dimitris Zlatanidis2022-12-23 13:32:59 +0100
committer Willy Sudiarto Raharjo2022-12-31 03:14:44 +0100
commitbf7df130c59c980629c3023b2c430effb709fe19 (patch)
tree27dd3ad4d59a75f53bc3cf44b0c70cd7a4ba65cd /python/python-toml
parent528782115c54608caa7b711f32c519a4b39d9f98 (diff)
downloadslackbuilds-bf7df130c59c980629c3023b2c430effb709fe19.tar.gz
python/python-toml: Updated script & new maintainer.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python-toml')
-rw-r--r--python/python-toml/python-toml.SlackBuild14
-rw-r--r--python/python-toml/python-toml.info4
2 files changed, 7 insertions, 11 deletions
diff --git a/python/python-toml/python-toml.SlackBuild b/python/python-toml/python-toml.SlackBuild
index e56fbbcc15..0f28a865e5 100644
--- a/python/python-toml/python-toml.SlackBuild
+++ b/python/python-toml/python-toml.SlackBuild
@@ -2,6 +2,7 @@
# Slackware build script for python-toml
+# Copyright 2022 Dimitris Zlatanidis Orestiada, Greece
# Copyright 2020 Markus Rinne Finland
# All rights reserved.
#
@@ -27,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python-toml
SRCNAM=toml
VERSION=${VERSION:-0.10.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -80,19 +81,14 @@ 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
- 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 README.rst \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/python/python-toml/python-toml.info b/python/python-toml/python-toml.info
index cab051c025..1485965527 100644
--- a/python/python-toml/python-toml.info
+++ b/python/python-toml/python-toml.info
@@ -6,5 +6,5 @@ MD5SUM="59bce5d8d67e858735ec3f399ec90253"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Markus Rinne"
-EMAIL="markus.ka.rinne@gmail.com"
+MAINTAINER="Dimitris Zlatanidis"
+EMAIL="d.zlatanidis@gmail.com"