summaryrefslogtreecommitdiff
path: root/python/pyasn1/pyasn1.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyasn1/pyasn1.SlackBuild')
-rw-r--r--python/pyasn1/pyasn1.SlackBuild15
1 files changed, 5 insertions, 10 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