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.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/source/ap/squashfs-tools/squashfs-tools.SlackBuild b/source/ap/squashfs-tools/squashfs-tools.SlackBuild
index 65f274986..c77eeec0b 100755
--- a/source/ap/squashfs-tools/squashfs-tools.SlackBuild
+++ b/source/ap/squashfs-tools/squashfs-tools.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=squashfs-tools
VERSION=${VERSION:-$( echo squashfs-tools*.tar.?z | cut -d- -f3- | rev | cut -f3- -d . | rev )}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -103,6 +103,18 @@ make $NUMJOBS \
# Install:
make install INSTALL_DIR=$PKG/usr/bin || 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
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null