summaryrefslogtreecommitdiffstats
path: root/libraries/libgringotts
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2022-04-18 14:51:08 -0400
committer B. Watson <yalhcru@gmail.com>2022-04-18 14:51:08 -0400
commit5e4ae5a3ff56770a9020c93da3f5b38eef1c3918 (patch)
treefc058b9132bece59e0991dc44fe57717f0f9cd78 /libraries/libgringotts
parent2d03814ad9b5b9727a0c935d2eed62972aaec40b (diff)
downloadslackbuilds-5e4ae5a3ff56770a9020c93da3f5b38eef1c3918.tar.gz
slackbuilds-5e4ae5a3ff56770a9020c93da3f5b38eef1c3918.tar.xz
libraries/libgringotts: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/libgringotts')
-rw-r--r--libraries/libgringotts/libgringotts.SlackBuild18
1 files changed, 8 insertions, 10 deletions
diff --git a/libraries/libgringotts/libgringotts.SlackBuild b/libraries/libgringotts/libgringotts.SlackBuild
index e38684c70b..6e2b50c207 100644
--- a/libraries/libgringotts/libgringotts.SlackBuild
+++ b/libraries/libgringotts/libgringotts.SlackBuild
@@ -4,11 +4,14 @@
# Written by Pablo Santamaria (pablosantamaria@gmail.com)
+# 20220418 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - remove empty NEWS from doc dir.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libgringotts
VERSION=${VERSION:-1.2.1}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -20,9 +23,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
@@ -57,9 +57,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" \
CXXFLAGS="$SLKCFLAGS" \
@@ -73,16 +73,14 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
+make install-strip DESTDIR=$PKG
# Fix pkg-config file
sed -i -e "s#/lib#/lib$LIBDIRSUFFIX#" $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/libgringotts.pc
# Fix documentation location
mv $PKG/usr/share/doc $PKG/usr && rm -rf $PKG/usr/share
-
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+rm -f $PKG/usr/doc/$PRGNAM-$VERSION/NEWS
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild