aboutsummaryrefslogtreecommitdiff
path: root/python/asn1crypto
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu1@isaacyu1.com>2022-10-09 11:16:01 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-10 23:35:29 +0700
commit0b50e98d35c6baaf164ff1f7defc4391564de0ab (patch)
treed0cdb49268cf86e7188fef68075e7580b92e0413 /python/asn1crypto
parentf55cac87949a9f43ebf86f65a19609be73e02086 (diff)
python/asn1crypto: Update for 1.5.1 (+new maintainer)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/asn1crypto')
-rw-r--r--python/asn1crypto/asn1crypto.SlackBuild11
-rw-r--r--python/asn1crypto/asn1crypto.info10
2 files changed, 9 insertions, 12 deletions
diff --git a/python/asn1crypto/asn1crypto.SlackBuild b/python/asn1crypto/asn1crypto.SlackBuild
index 5e967662ccb06..5fbdf2e27e0a4 100644
--- a/python/asn1crypto/asn1crypto.SlackBuild
+++ b/python/asn1crypto/asn1crypto.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for asn1crypto
#
# Copyright 2017-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
@@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=asn1crypto
-VERSION=${VERSION:-0.24.0}
+VERSION=${VERSION:-1.5.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -81,17 +82,13 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python setup.py install --root=$PKG
-
-# Python 3 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 -a LICENSE changelog.* docs/* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE changelog.md docs/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/python/asn1crypto/asn1crypto.info b/python/asn1crypto/asn1crypto.info
index c64d53da749a7..1e739d0f11521 100644
--- a/python/asn1crypto/asn1crypto.info
+++ b/python/asn1crypto/asn1crypto.info
@@ -1,10 +1,10 @@
PRGNAM="asn1crypto"
-VERSION="0.24.0"
+VERSION="1.5.1"
HOMEPAGE="https://pypi.python.org/pypi/asn1crypto"
-DOWNLOAD="https://pypi.python.org/packages/fc/f1/8db7daa71f414ddabfa056c4ef792e1461ff655c2ae2928a2b675bfed6b4/asn1crypto-0.24.0.tar.gz"
-MD5SUM="de3520426e81a6581352d4366f310eb1"
+DOWNLOAD="https://pypi.python.org/packages/source/a/asn1crypto/asn1crypto-1.5.1.tar.gz"
+MD5SUM="f7a5271af9b81246fbdf57d703afce2f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Markus Reichelt"
-EMAIL="slackbuilds@mareichelt.de"
+MAINTAINER="Isaac Yu"
+EMAIL="isaacyu1@isaacyu1.com"