summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu1@isaacyu1.com>2022-10-09 11:17:35 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-10 23:38:00 +0700
commitc866e3750894320c266880b6ba24549a0e59ff46 (patch)
tree7cafaba5aafe9dc6d8b95fe80fa6c3c4c3117732 /python
parent0b50e98d35c6baaf164ff1f7defc4391564de0ab (diff)
downloadslackbuilds-c866e3750894320c266880b6ba24549a0e59ff46.tar.gz
python/pyasn1: Update for 0.4.8 (+new maintainer)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/pyasn1/pyasn1.SlackBuild15
-rw-r--r--python/pyasn1/pyasn1.info10
2 files changed, 10 insertions, 15 deletions
diff --git a/python/pyasn1/pyasn1.SlackBuild b/python/pyasn1/pyasn1.SlackBuild
index 920aeb7be8..181413d8cf 100644
--- a/python/pyasn1/pyasn1.SlackBuild
+++ b/python/pyasn1/pyasn1.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for pyasn1
-# Copyright 2011-2018 Markus Reichelt, Aachen, DE
+# Copyright 2011-2018 Markus Reichelt, Aachen, DE
+# Copyright 2022 Isaac Yu <isaacyu1@isaacyu1.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,12 +23,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Markus Reichelt, slackbuilds@mareichelt.de, 0xCCEEF115
-
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pyasn1
-VERSION=${VERSION:-0.4.4}
+VERSION=${VERSION:-0.4.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -82,17 +81,13 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python 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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -ar *.rst *.md docs/ $PKG/usr/doc/$PRGNAM-$VERSION
+cp -ar CHANGELOG.rst LICENSE.rst README.md TODO.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/python/pyasn1/pyasn1.info b/python/pyasn1/pyasn1.info
index e0bc445269..773b8fd049 100644
--- a/python/pyasn1/pyasn1.info
+++ b/python/pyasn1/pyasn1.info
@@ -1,10 +1,10 @@
PRGNAM="pyasn1"
-VERSION="0.4.4"
+VERSION="0.4.8"
HOMEPAGE="https://github.com/etingof/pyasn1"
-DOWNLOAD="https://files.pythonhosted.org/packages/10/46/059775dc8e50f722d205452bced4b3cc965d27e8c3389156acd3b1123ae3/pyasn1-0.4.4.tar.gz"
-MD5SUM="0d182b71e1f72fe147d7957bc90be7f2"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/p/pyasn1/pyasn1-0.4.4.tar.gz"
+MD5SUM="dffae4ff9f997a83324b3f33fe62be54"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Markus Reichelt"
-EMAIL="slackbuilds@mareichelt.de"
+MAINTAINER="Isaac Yu"
+EMAIL="isaacyu1@isaacyu1.com"