diff options
author | Matt Egger <matt.egger@gmail.com> | 2024-09-25 16:00:54 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-09-27 23:12:13 +0700 |
commit | 7f77b0d00db11cd1c3e6fb361e24e80adfb32b00 (patch) | |
tree | 71998aa4a5fa45ac9d62e6ac7c1c4417c36794ad /python | |
parent | 1caa032192642f4a3bb80730157230586a930383 (diff) |
python/python-libarchive-c: updated for version 5.1
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/python-libarchive-c/README | 4 | ||||
-rw-r--r-- | python/python-libarchive-c/python-libarchive-c.SlackBuild | 18 | ||||
-rw-r--r-- | python/python-libarchive-c/python-libarchive-c.info | 6 |
3 files changed, 9 insertions, 19 deletions
diff --git a/python/python-libarchive-c/README b/python/python-libarchive-c/README index c85dd38b2a485..f16e8e8220476 100644 --- a/python/python-libarchive-c/README +++ b/python/python-libarchive-c/README @@ -1,5 +1 @@ python-libarchive-c is a Python interface to libarchive. - -python3 is an optional dependency. You need to set PYTHON3=yes, -for example: - PYTHON3=yes ./python-libarchive-c.SlackBuild diff --git a/python/python-libarchive-c/python-libarchive-c.SlackBuild b/python/python-libarchive-c/python-libarchive-c.SlackBuild index a0b5481e7e610..71058b1771650 100644 --- a/python/python-libarchive-c/python-libarchive-c.SlackBuild +++ b/python/python-libarchive-c/python-libarchive-c.SlackBuild @@ -2,6 +2,7 @@ # Slackware build script for python-libarchive-c +# Copyright 2024 Matt Egger, USA # Copyright 2016 David Spencer, Baildon, West Yorkshire, U.K. # All rights reserved. # @@ -25,13 +26,11 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python-libarchive-c -VERSION=${VERSION:-2.8} +VERSION=${VERSION:-5.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -SRCNAM="$(printf $PRGNAM | cut -d- -f2-)" - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -71,9 +70,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz -cd $SRCNAM-$VERSION +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -81,12 +80,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python setup.py install --root=$PKG - -if [ "${PYTHON3:-no}" = "yes" ]; then - rm -rf build - 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 diff --git a/python/python-libarchive-c/python-libarchive-c.info b/python/python-libarchive-c/python-libarchive-c.info index 3b59870aeb83d..33908d28aebcb 100644 --- a/python/python-libarchive-c/python-libarchive-c.info +++ b/python/python-libarchive-c/python-libarchive-c.info @@ -1,8 +1,8 @@ PRGNAM="python-libarchive-c" -VERSION="2.8" +VERSION="5.1" HOMEPAGE="https://github.com/Changaco/python-libarchive-c" -DOWNLOAD="https://files.pythonhosted.org/packages/b9/2c/c975b3410e148dab00d14471784a743268614e21121e50e4e00b13f38370/libarchive-c-2.8.tar.gz" -MD5SUM="9e517783a8e86761d1c04f5550025c27" +DOWNLOAD="https://github.com/Changaco/python-libarchive-c/archive/5.1/python-libarchive-c-5.1.tar.gz" +MD5SUM="60bca0c12c21755c84fc2f990811b7aa" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |