summaryrefslogtreecommitdiffstats
path: root/system/unrar
diff options
context:
space:
mode:
Diffstat (limited to 'system/unrar')
-rw-r--r--system/unrar/unrar-6.1.7-soname.patch (renamed from system/unrar/unrar-5.5.5-soname.patch)11
-rw-r--r--system/unrar/unrar.SlackBuild27
-rw-r--r--system/unrar/unrar.info6
3 files changed, 21 insertions, 23 deletions
diff --git a/system/unrar/unrar-5.5.5-soname.patch b/system/unrar/unrar-6.1.7-soname.patch
index f0b5dbbd9f..9640e1cfd8 100644
--- a/system/unrar/unrar-5.5.5-soname.patch
+++ b/system/unrar/unrar-6.1.7-soname.patch
@@ -1,9 +1,10 @@
---- unrar/makefile.orig 2017-06-13 13:04:49.000000000 +0200
-+++ unrar/makefile 2017-06-23 20:29:54.138415405 +0200
-@@ -156,7 +156,7 @@
+diff -Naur unrar.orig/makefile unrar/makefile
+--- unrar.orig/makefile 2022-02-22 11:43:06.000000000 +0100
++++ unrar/makefile 2022-06-29 15:30:41.787420000 +0200
+@@ -157,7 +157,7 @@
+ lib: CXXFLAGS+=$(LIBFLAGS)
lib: clean $(OBJECTS) $(LIB_OBJ)
- @rm -f libunrar.so
- @rm -f libunrar.a
+ @rm -f libunrar.*
- $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
+ $(LINK) -shared -Wl,-soname,libunrar.so.$(libversion) -o libunrar.so.$(libversion) $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
$(AR) rcs libunrar.a $(OBJECTS) $(LIB_OBJ)
diff --git a/system/unrar/unrar.SlackBuild b/system/unrar/unrar.SlackBuild
index c0768dd718..6da28d4868 100644
--- a/system/unrar/unrar.SlackBuild
+++ b/system/unrar/unrar.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for unrar
-# Copyright 2011, 2013, 2015, 2016, 2017, 2018 Mario Preksavec, Zagreb, Croatia
+# Copyright 2011, 2024 Mario Preksavec, Zagreb, Croatia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230801 bkw: Modified by SlackBuilds.org: add -j1 to make commands,
+# since parallel builds fail.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=unrar
-VERSION=${VERSION:-5.6.1}
+VERSION=${VERSION:-6.2.12}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +41,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
@@ -75,18 +75,18 @@ cd $PRGNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} + -o \
\( -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 {} +
-patch -p1 < $CWD/unrar-5.5.5-soname.patch
+patch -p1 < $CWD/unrar-6.1.7-soname.patch
cp -a $TMP/$PRGNAM/ $TMP/libunrar
-make -C $TMP/libunrar lib libversion=$VERSION CXXFLAGS="$SLKCFLAGS"
-make CXXFLAGS="$SLKCFLAGS" -f makefile unrar lib
+make -j1 -C $TMP/libunrar lib libversion=$VERSION CXXFLAGS="$SLKCFLAGS"
+make -j1 CXXFLAGS="$SLKCFLAGS" -f makefile unrar lib
-install -D -m 755 unrar $PKG/usr/bin/unrar
-install -D -m 755 $TMP/libunrar/libunrar.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}/libunrar.so.$VERSION
+install -s -D -m 755 unrar $PKG/usr/bin/unrar
+install -s -D -m 755 $TMP/libunrar/libunrar.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}/libunrar.so.$VERSION
install -D -m 644 dll.hpp "$PKG/usr/include/unrar/dll.hpp"
(
@@ -95,9 +95,6 @@ install -D -m 644 dll.hpp "$PKG/usr/include/unrar/dll.hpp"
ln -s libunrar.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}/libunrar.so.5
)
-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/man/man1
gzip -9c $CWD/unrar.1 > $PKG/usr/man/man1/unrar.1.gz
diff --git a/system/unrar/unrar.info b/system/unrar/unrar.info
index 0c32d0c325..debb4d68f8 100644
--- a/system/unrar/unrar.info
+++ b/system/unrar/unrar.info
@@ -1,8 +1,8 @@
PRGNAM="unrar"
-VERSION="5.6.1"
+VERSION="6.2.12"
HOMEPAGE="https://www.rarlab.com"
-DOWNLOAD="https://www.rarlab.com/rar/unrarsrc-5.6.1.tar.gz"
-MD5SUM="e33bb37fead8538103bf292c59f3b130"
+DOWNLOAD="https://www.rarlab.com/rar/unrarsrc-6.2.12.tar.gz"
+MD5SUM="1f526429e8e50a9b3b94f325b2848c24"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""