aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-13 15:59:12 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-16 12:11:26 +0700
commitc1f253b241ccec5b01c106ba9f89310b87f5e977 (patch)
tree4081835bccde8bad79813d21998826ddd8944e95 /system
parent5ee03d28c7d2c264bae061aff194025db956d67a (diff)
system/rar2fs: Strip binaries.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/rar2fs/rar2fs.SlackBuild19
1 files changed, 9 insertions, 10 deletions
diff --git a/system/rar2fs/rar2fs.SlackBuild b/system/rar2fs/rar2fs.SlackBuild
index 9ad417ee204e2..064f4be820c0e 100644
--- a/system/rar2fs/rar2fs.SlackBuild
+++ b/system/rar2fs/rar2fs.SlackBuild
@@ -22,11 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220413 bkw: Modified by SlackBuilds.org, BUILD=2: strip binaries.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rar2fs
VERSION=${VERSION:-1.29.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +40,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,9 +74,9 @@ cd $PRGNAM-$VERSION
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 {} \+
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -91,11 +90,11 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-install -D -m 755 src/mkr2i $PKG/usr/bin/mkr2i
-install -D -m 755 src/rar2fs $PKG/usr/bin/rar2fs
+install -s -D -m 755 src/mkr2i $PKG/usr/bin/mkr2i
+install -s -D -m 755 src/rar2fs $PKG/usr/bin/rar2fs
-install -D -m 644 man/rar2fs.1 $PKG/usr/man/man1/rar2fs.1
-find $PKG/usr/man -type f -exec gzip -9 {} \;
+gzip -9 man/rar2fs.1
+install -D -m 644 man/rar2fs.1.gz $PKG/usr/man/man1/rar2fs.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING README $PKG/usr/doc/$PRGNAM-$VERSION