From cbb0c6a330548315d772ad78d6d05b016f777466 Mon Sep 17 00:00:00 2001 From: B. Watson Date: Wed, 13 Apr 2022 12:21:07 -0400 Subject: system/lxsession: Fix docs. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- system/lxsession/lxsession.SlackBuild | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'system/lxsession') diff --git a/system/lxsession/lxsession.SlackBuild b/system/lxsession/lxsession.SlackBuild index 5334251a73..183c52298a 100644 --- a/system/lxsession/lxsession.SlackBuild +++ b/system/lxsession/lxsession.SlackBuild @@ -59,6 +59,8 @@ # * update. # 0.5.5-1: 25/aug/2020 by Matteo Bernardini # * update. +# 0.5.5-2: 13/apr/2022 by B. Watson +# * remove empty file from doc dir. # # Run 'sh lxsession.SlackBuild' to build a Slackware package. # The package (.tgz) plus descriptive .txt file are created in /tmp . @@ -70,7 +72,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=lxsession VERSION=${VERSION:-0.5.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -82,11 +84,9 @@ if [ -z "$ARCH" ]; then esac fi -DOCS="AUTHORS COPYING ChangeLog NEWS README" +# 20220413 bkw: don't include NEWS, it's a 0-byte placeholder. +DOCS="AUTHORS COPYING ChangeLog README" -# 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 @@ -119,14 +119,14 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.?z +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz 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 \ + -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + -exec chmod 644 {} \+ CXXFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \ @@ -147,9 +147,7 @@ CFLAGS="$SLKCFLAGS" \ make make install-strip DESTDIR=$PKG - -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +gzip -9 $PKG/usr/man/man*/* # Add documentation: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3