diff options
Diffstat (limited to 'system/bin2iso/bin2iso.SlackBuild')
-rw-r--r-- | system/bin2iso/bin2iso.SlackBuild | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/system/bin2iso/bin2iso.SlackBuild b/system/bin2iso/bin2iso.SlackBuild index 51c13bbd1047a..91ef15daf58f1 100644 --- a/system/bin2iso/bin2iso.SlackBuild +++ b/system/bin2iso/bin2iso.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for bin2iso -# Copyright 2016 Hunter Sezen California, USA +# Copyright 2016, 2019 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=bin2iso VERSION=${VERSION:-19b} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -54,7 +54,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -63,12 +63,16 @@ rm -rf $PRGNAM-$VERSION mkdir $PRGNAM-$VERSION cd $PRGNAM-$VERSION -[ -z "$CC" ] && CC=cc -$CC $SLKCFLAGS -Wall -o $PRGNAM $CWD/$PRGNAM${VERSION}_linux.c -install -Dm0755 $PRGNAM $PKG/usr/bin/$PRGNAM +${CC:-cc} \ + $(printf %s "$SLKCFLAGS") -Wall -o $PRGNAM \ + $CWD/$PRGNAM${VERSION}_linux.c -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/bin" +cp -- $PRGNAM "$PKG/usr/bin/" +chmod 0755 -- "$PKG/usr/bin/$PRGNAM" + +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 $CWD/readme.txt $PKG/usr/doc/$PRGNAM-$VERSION |