summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Steven Voges2023-10-21 01:52:10 +0200
committer Willy Sudiarto Raharjo2023-10-21 12:20:13 +0200
commit9385b66d04004daa38145937fd1f63f26a1831b0 (patch)
treede53b6c6e1598956cc4606b953ec20154e524c34
parentb3b0eb0c9fc9b21e6ca9c774d39c6500553edfa3 (diff)
downloadslackbuilds-9385b66d04004daa38145937fd1f63f26a1831b0.tar.gz
python/python-magic: Updated for version 0.4.27, new maint.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/python-magic/python-magic.SlackBuild12
-rw-r--r--python/python-magic/python-magic.info10
2 files changed, 8 insertions, 14 deletions
diff --git a/python/python-magic/python-magic.SlackBuild b/python/python-magic/python-magic.SlackBuild
index 14d8cbabad..f2f5733870 100644
--- a/python/python-magic/python-magic.SlackBuild
+++ b/python/python-magic/python-magic.SlackBuild
@@ -2,6 +2,7 @@
# Slackware build script for python-magic
+# Copyright 2023 Steven Voges <Oregon, USA>
# Copyright 2009-2018 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
@@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python-magic
-VERSION=${VERSION:-0.4.15}
+VERSION=${VERSION:-0.4.27}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -66,11 +64,7 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python2 setup.py install --root=$PKG
-
-# Add Python3 support
-if $(python3 -c 'import sys' 2>/dev/null); then
- python3 setup.py install --root=$PKG
-fi
+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
diff --git a/python/python-magic/python-magic.info b/python/python-magic/python-magic.info
index fae47a05d5..35bf9963b7 100644
--- a/python/python-magic/python-magic.info
+++ b/python/python-magic/python-magic.info
@@ -1,10 +1,10 @@
PRGNAM="python-magic"
-VERSION="0.4.15"
+VERSION="0.4.27"
HOMEPAGE="https://github.com/ahupp/python-magic"
-DOWNLOAD="https://pypi.io/packages/source/p/python-magic/python-magic-0.4.15.tar.gz"
-MD5SUM="e384c95a47218f66c6501cd6dd45ff59"
+DOWNLOAD="https://files.pythonhosted.org/packages/da/db/0b3e28ac047452d079d375ec6798bf76a036a08182dbb39ed38116a49130/python-magic-0.4.27.tar.gz"
+MD5SUM="5ec09788e8dce05dfd4fd5345153f8a9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Larry Hajali"
-EMAIL="larryhaja[at]gmail[dot]com"
+MAINTAINER="Steven Voges"
+EMAIL="svoges.sbo@gmail.com"