python/pyasn1: Update for 0.4.8 (+new maintainer)

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

View File

@ -3,6 +3,7 @@
# Slackware build script for pyasn1
# 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
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

View File

@ -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"