python/python-libarchive-c: updated for version 5.1

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matt Egger 2024-09-25 16:00:54 -04:00 committed by Willy Sudiarto Raharjo
parent 1caa032192
commit 7f77b0d00d
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 9 additions and 19 deletions

View file

@ -1,5 +1 @@
python-libarchive-c is a Python interface to libarchive. 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

View file

@ -2,6 +2,7 @@
# Slackware build script for python-libarchive-c # Slackware build script for python-libarchive-c
# Copyright 2024 Matt Egger, USA
# Copyright 2016 David Spencer, Baildon, West Yorkshire, U.K. # Copyright 2016 David Spencer, Baildon, West Yorkshire, U.K.
# All rights reserved. # All rights reserved.
# #
@ -25,13 +26,11 @@
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python-libarchive-c PRGNAM=python-libarchive-c
VERSION=${VERSION:-2.8} VERSION=${VERSION:-5.1}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i586 ;; i?86) ARCH=i586 ;;
@ -71,9 +70,9 @@ set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $SRCNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ \( -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 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python setup.py install --root=$PKG python3 setup.py install --root=$PKG
if [ "${PYTHON3:-no}" = "yes" ]; then
rm -rf build
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

View file

@ -1,8 +1,8 @@
PRGNAM="python-libarchive-c" PRGNAM="python-libarchive-c"
VERSION="2.8" VERSION="5.1"
HOMEPAGE="https://github.com/Changaco/python-libarchive-c" HOMEPAGE="https://github.com/Changaco/python-libarchive-c"
DOWNLOAD="https://files.pythonhosted.org/packages/b9/2c/c975b3410e148dab00d14471784a743268614e21121e50e4e00b13f38370/libarchive-c-2.8.tar.gz" DOWNLOAD="https://github.com/Changaco/python-libarchive-c/archive/5.1/python-libarchive-c-5.1.tar.gz"
MD5SUM="9e517783a8e86761d1c04f5550025c27" MD5SUM="60bca0c12c21755c84fc2f990811b7aa"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""