system/ticpp: Fix /usr/include permissions.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2022-04-10 15:14:16 -04:00
parent 368e9b1c4d
commit 4b08353a53

View file

@ -25,12 +25,16 @@
# Revision date: 2020/Nov/25
# 20220410 bkw: Modified by SlackBuilds.org, BUILD=2:
# - do not install headers in /usr/include with execute permissions.
# - remove useless and actually misleading build_instructions.txt.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ticpp
VERSION=${VERSION:-0.1}
COMVER=eb79120ea16b847ce9f483a298a394050f463d6b
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -42,9 +46,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
@ -81,9 +82,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 {} \+
mkdir -p build
cd build
@ -97,11 +98,11 @@ cd build
cd ..
mkdir -p "$PKG/usr/include"
install -Dm775 ticpp.h "$PKG/usr/include"
install -Dm775 ticppapi.h "$PKG/usr/include"
install -Dm775 ticpprc.h "$PKG/usr/include"
install -Dm775 tinystr.h "$PKG/usr/include"
install -Dm775 tinyxml.h "$PKG/usr/include"
install -Dm644 ticpp.h "$PKG/usr/include"
install -Dm644 ticppapi.h "$PKG/usr/include"
install -Dm644 ticpprc.h "$PKG/usr/include"
install -Dm644 tinystr.h "$PKG/usr/include"
install -Dm644 tinyxml.h "$PKG/usr/include"
mkdir -p "$PKG/usr/lib${LIBDIRSUFFIX}"
install -Dm775 build/libticpp.a "$PKG"/usr/lib${LIBDIRSUFFIX}
@ -110,7 +111,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a build_instructions.txt changes.txt LICENSE README.md tutorial_gettingStarted.txt \
cp -a changes.txt LICENSE README.md tutorial_gettingStarted.txt \
tutorial_ticpp.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild