mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
python/python-libarchive-c: updated for version 5.1
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
1caa032192
commit
7f77b0d00d
3 changed files with 9 additions and 19 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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=""
|
||||
|
|
Loading…
Reference in a new issue