From 4e3fd39abe47fca47b21b4a5990a9848e754829f Mon Sep 17 00:00:00 2001 From: Jeremy Hansen Date: Fri, 16 Jun 2023 18:46:03 +0700 Subject: [PATCH] libraries/rarfile: Updated for version 4.0. Signed-off-by: Willy Sudiarto Raharjo --- libraries/rarfile/rarfile.SlackBuild | 29 +++++----------------------- libraries/rarfile/rarfile.info | 10 +++++----- 2 files changed, 10 insertions(+), 29 deletions(-) diff --git a/libraries/rarfile/rarfile.SlackBuild b/libraries/rarfile/rarfile.SlackBuild index acf093f0a0..524da4ee8a 100644 --- a/libraries/rarfile/rarfile.SlackBuild +++ b/libraries/rarfile/rarfile.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for rarfile # Copyright 2014-2019 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2023 Jeremy Hansen jebrhansen+SBo@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=rarfile -VERSION=${VERSION:-3.1} +VERSION=${VERSION:-4.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +39,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -50,20 +48,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -79,17 +63,14 @@ 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 -c 'import sys' 2>/dev/null); then - python3 setup.py install --root=$PKG -fi +python2 setup.py install --root=$PKG +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 -a LICENSE PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.rst $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/libraries/rarfile/rarfile.info b/libraries/rarfile/rarfile.info index 671979828e..0ea214b645 100644 --- a/libraries/rarfile/rarfile.info +++ b/libraries/rarfile/rarfile.info @@ -1,10 +1,10 @@ PRGNAM="rarfile" -VERSION="3.1" +VERSION="4.0" HOMEPAGE="https://github.com/markokr/rarfile" -DOWNLOAD="https://files.pythonhosted.org/packages/88/0b/107dde3f330d04668e126932a09002ac47348841453aa0391634381fa087/rarfile-3.1.tar.gz" -MD5SUM="d94cde501770c037b2054539d2977ff2" +DOWNLOAD="https://github.com/markokr/rarfile/archive/refs/tags/v4.0/rarfile-4.0.tar.gz" +MD5SUM="19eb176fa2df8e9c4ad5c719c311ca4a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Dimitris Zlatanidis" -EMAIL="d.zlatanidis@gmail.com" +MAINTAINER="Jeremy Hansen" +EMAIL="jebrhansen+SBo@gmail.com"