diff options
Diffstat (limited to 'desktop/trayer-srg/trayer-srg.SlackBuild')
-rw-r--r-- | desktop/trayer-srg/trayer-srg.SlackBuild | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/desktop/trayer-srg/trayer-srg.SlackBuild b/desktop/trayer-srg/trayer-srg.SlackBuild index 55d6f17994..5901b2e2de 100644 --- a/desktop/trayer-srg/trayer-srg.SlackBuild +++ b/desktop/trayer-srg/trayer-srg.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for trayer-srg @@ -22,10 +22,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Now maintained by B. Watson (yalhcru@gmail.com) +# Now maintained by B. Watson (urchlay@slackware.uk) +# 20210907 bkw: BUILD=2, spelling/grammar fixes in docs. # 20180612 bkw: updated for v1.1.8. - # 20170708 bkw: # - updated for v1.1.7. # - stop installing INSTALL in doc dir. @@ -39,10 +39,13 @@ # dates just by looking at them. # - Upstream now uses a (non-autotools) ./configure script. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=trayer-srg VERSION=${VERSION:-1.1.8} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -52,7 +55,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} @@ -84,12 +91,13 @@ rm -rf $TARNAM-$VERSION tar xvf $CWD/$TARNAM-$VERSION.tar.?z* cd $TARNAM-$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 \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +patch -p1 < $CWD/spelling_grammar_fixes.diff +# not a real (autotools) configure script, notice non-canonical use +# of --prefix here! ./configure --prefix=/usr/bin CFLAGS="$SLKCFLAGS" make # This will also strip the executable @@ -108,4 +116,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 |