From 3ca1d7641433948a843ed13df50453841a1d7f4d Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 20 Apr 2022 01:20:07 -0400 Subject: libraries/libsmdev: Fix docs. Signed-off-by: B. Watson --- libraries/libsmdev/libsmdev.SlackBuild | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'libraries/libsmdev') diff --git a/libraries/libsmdev/libsmdev.SlackBuild b/libraries/libsmdev/libsmdev.SlackBuild index 71bb871488f11..00a0c87bcf622 100644 --- a/libraries/libsmdev/libsmdev.SlackBuild +++ b/libraries/libsmdev/libsmdev.SlackBuild @@ -24,11 +24,14 @@ # Updated v20181227 Jan 2019 +# 20220420 bkw: Modified by SlackBuilds.org, BUILD=3: +# - remove empty/useless docs. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libsmdev VERSION=${VERSION:-20181227} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -40,9 +43,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 @@ -77,9 +77,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 {} \+ CFLAGS="$SLKCFLAGS -std=gnu89" \ CXXFLAGS="$SLKCFLAGS -std=gnu89" \ @@ -95,12 +95,10 @@ CXXFLAGS="$SLKCFLAGS -std=gnu89" \ 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*/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -ar ABOUT-NLS AUTHORS NEWS ChangeLog COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION +cp -ar AUTHORS ChangeLog COPYING README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild rm -f $PKG/usr/lib*/*.la -- cgit v1.2.3