aboutsummaryrefslogtreecommitdiff
path: root/development/ftjam/ftjam.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-02-14 01:41:48 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-18 10:07:01 +0700
commit49d0dbfc6c576b1705b0567476aac7be8035ff60 (patch)
tree9023c2c762ca86ad63d44ae3de715c58bc5a4ce1 /development/ftjam/ftjam.SlackBuild
parentaf10da713d231306ea3f91131ce7d662cc2af1b6 (diff)
development/ftjam: Fix doc perms, align with template.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/ftjam/ftjam.SlackBuild')
-rw-r--r--development/ftjam/ftjam.SlackBuild20
1 files changed, 8 insertions, 12 deletions
diff --git a/development/ftjam/ftjam.SlackBuild b/development/ftjam/ftjam.SlackBuild
index 9ba9019645030..97d16eb10eab6 100644
--- a/development/ftjam/ftjam.SlackBuild
+++ b/development/ftjam/ftjam.SlackBuild
@@ -1,17 +1,15 @@
-#!/bin/bash
+#!/bin/bash -e
# Slackware build script for ftjam
# Written by Ferenc Deak <ferenc.deak@gmail.com>
# Modified (slightly) by the SlackBuilds.org project
-set -e
-
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ftjam
VERSION=${VERSION:-2.5.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -23,9 +21,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
@@ -58,9 +53,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 {} \+
# Version 2.5.2 will not build without -fno-strict-aliasing.
# Works around a ftjam bug where jam0 segfaults.
@@ -76,9 +71,10 @@ make install DESTDIR=$PKG
find $PKG | xargs 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 -a README CHANGES RELNOTES Jambase *.html $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+install -m0644 README CHANGES RELNOTES Jambase *.html $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc