diff options
Diffstat (limited to 'system/ticpp/ticpp.SlackBuild')
-rw-r--r-- | system/ticpp/ticpp.SlackBuild | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/system/ticpp/ticpp.SlackBuild b/system/ticpp/ticpp.SlackBuild index 9fe9e6543b..22bd7fdf72 100644 --- a/system/ticpp/ticpp.SlackBuild +++ b/system/ticpp/ticpp.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for TiCPP # XML Parser @@ -25,11 +25,18 @@ # 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} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -39,7 +46,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -71,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 @@ -87,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} @@ -100,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 @@ -108,4 +119,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |