python/asn1crypto: Update for 1.5.1 (+new maintainer)

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Isaac Yu 2022-10-09 11:16:01 -07:00 committed by Willy Sudiarto Raharjo
parent f55cac8794
commit 0b50e98d35
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 9 additions and 12 deletions

View File

@ -3,6 +3,7 @@
# Slackware build script for asn1crypto # Slackware build script for asn1crypto
# #
# Copyright 2017-2018 Markus Reichelt, Aachen, DE # Copyright 2017-2018 Markus Reichelt, Aachen, DE
# Copyright 2022 Isaac Yu <isaacyu1@isaacyu1.com>
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=asn1crypto PRGNAM=asn1crypto
VERSION=${VERSION:-0.24.0} VERSION=${VERSION:-1.5.1}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -81,17 +82,13 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python setup.py install --root=$PKG python setup.py install --root=$PKG
python3 setup.py install --root=$PKG
# Python 3 support.
if $(python3 -c 'import sys' 2>/dev/null); then
python3 setup.py install --root=$PKG
fi
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION 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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install

View File

@ -1,10 +1,10 @@
PRGNAM="asn1crypto" PRGNAM="asn1crypto"
VERSION="0.24.0" VERSION="1.5.1"
HOMEPAGE="https://pypi.python.org/pypi/asn1crypto" HOMEPAGE="https://pypi.python.org/pypi/asn1crypto"
DOWNLOAD="https://pypi.python.org/packages/fc/f1/8db7daa71f414ddabfa056c4ef792e1461ff655c2ae2928a2b675bfed6b4/asn1crypto-0.24.0.tar.gz" DOWNLOAD="https://pypi.python.org/packages/source/a/asn1crypto/asn1crypto-1.5.1.tar.gz"
MD5SUM="de3520426e81a6581352d4366f310eb1" MD5SUM="f7a5271af9b81246fbdf57d703afce2f"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""
MAINTAINER="Markus Reichelt" MAINTAINER="Isaac Yu"
EMAIL="slackbuilds@mareichelt.de" EMAIL="isaacyu1@isaacyu1.com"