aboutsummaryrefslogtreecommitdiff
path: root/libraries/libsmdev
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-20 01:20:07 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-20 01:20:07 -0400
commit3ca1d7641433948a843ed13df50453841a1d7f4d (patch)
tree8793b51367cf5b5d9fe675a94d9eef461c7fe02e /libraries/libsmdev
parent869e3f2d4189fc9b4af6cf6f9b897b5f14af678f (diff)
libraries/libsmdev: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/libsmdev')
-rw-r--r--libraries/libsmdev/libsmdev.SlackBuild18
1 files changed, 8 insertions, 10 deletions
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