summaryrefslogtreecommitdiffstats
path: root/source/ap/squashfs-tools/squashfs-tools.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/squashfs-tools/squashfs-tools.SlackBuild')
-rwxr-xr-xsource/ap/squashfs-tools/squashfs-tools.SlackBuild19
1 files changed, 16 insertions, 3 deletions
diff --git a/source/ap/squashfs-tools/squashfs-tools.SlackBuild b/source/ap/squashfs-tools/squashfs-tools.SlackBuild
index 65f274986..cb2195dc3 100755
--- a/source/ap/squashfs-tools/squashfs-tools.SlackBuild
+++ b/source/ap/squashfs-tools/squashfs-tools.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
# Copyright 2015, 2018 Eric Hameleers, Eindhoven, NL
-# Copyright 2017, 2018, 2021 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2017, 2018, 2021, 2023 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -30,7 +30,7 @@ BUILD=${BUILD:-1}
if [ -z "$ARCH" ]; then
case "$(uname -m)" in
i?86) ARCH=i586 ;;
- arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
+ arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;;
esac
@@ -101,7 +101,19 @@ make $NUMJOBS \
COMP_DEFAULT="xz" || exit 1
# Install:
-make install INSTALL_DIR=$PKG/usr/bin || exit 1
+make install INSTALL_DIR=$PKG/usr/bin INSTALL_MANPAGES_DIR=$PKG/usr/man/man1 || exit 1
+
+# Fix (if needed) broken symlinks:
+( cd $PKG/usr/bin
+ if ls -l sqfscat | grep -q package-squashfs-tools ; then
+ rm sqfscat
+ ln -sf unsquashfs sqfscat
+ fi
+ if ls -l sqfstar | grep -q package-squashfs-tools ; then
+ rm sqfstar
+ ln -sf mksquashfs sqfstar
+ fi
+)
# Strip binaries:
( cd $PKG
@@ -114,6 +126,7 @@ cd ..
mkdir -p $PKG/usr/doc/${PKGNAM}-$VERSION
cp -a \
ACKNOWLEDGEMENTS CHANGES COPYING* INSTALL *README* \
+ examples/pseudo-file.example \
$PKG/usr/doc/${PKGNAM}-$VERSION
mkdir -p $PKG/install