summaryrefslogtreecommitdiff
path: root/system/mdf2iso/mdf2iso.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/mdf2iso/mdf2iso.SlackBuild')
-rw-r--r--system/mdf2iso/mdf2iso.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/system/mdf2iso/mdf2iso.SlackBuild b/system/mdf2iso/mdf2iso.SlackBuild
index 7500e7e05d..3cb3bb4732 100644
--- a/system/mdf2iso/mdf2iso.SlackBuild
+++ b/system/mdf2iso/mdf2iso.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for mdf2iso
-# Copyright 2016 Hunter Sezen California, USA
+# Copyright 2016, 2018 Hunter Sezen California, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -54,7 +54,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -77,10 +77,11 @@ CFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+install -Dm0644 $CWD/$PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1
+
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
-install -Dm0644 $CWD/$PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done