summaryrefslogtreecommitdiffstats
path: root/system/lxsession
diff options
context:
space:
mode:
author B. Watson2022-04-13 18:21:07 +0200
committer Willy Sudiarto Raharjo2022-04-16 07:11:25 +0200
commitcbb0c6a330548315d772ad78d6d05b016f777466 (patch)
tree2ccbc6659c421e855e9e2b4f63a0cefa4d2c12e3 /system/lxsession
parent060447e25a4971bb26d2a741d98dda208a5607da (diff)
downloadslackbuilds-cbb0c6a330548315d772ad78d6d05b016f777466.tar.gz
system/lxsession: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/lxsession')
-rw-r--r--system/lxsession/lxsession.SlackBuild20
1 files changed, 9 insertions, 11 deletions
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 <ponce@slackbuilds.org>
# * update.
+# 0.5.5-2: 13/apr/2022 by B. Watson <urchlay@slackware.uk>
+# * 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