summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2022-04-16 17:23:27 -0400
committer B. Watson <yalhcru@gmail.com>2022-04-16 17:23:27 -0400
commit9bab56d3feaa7b8f40d2ddff2c2a3ec5bb16a2cd (patch)
tree3a43f1e084f3f11e4407b646aa7903f451f3a9c7
parentf1bf2b68b3ba3f39f7954f9fea30ab6e7a3c9a8a (diff)
downloadslackbuilds-9bab56d3feaa7b8f40d2ddff2c2a3ec5bb16a2cd.tar.gz
slackbuilds-9bab56d3feaa7b8f40d2ddff2c2a3ec5bb16a2cd.tar.xz
libraries/DevIL: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r--libraries/DevIL/DevIL.SlackBuild20
1 files changed, 10 insertions, 10 deletions
diff --git a/libraries/DevIL/DevIL.SlackBuild b/libraries/DevIL/DevIL.SlackBuild
index cb08f23f47..31c2a0c57f 100644
--- a/libraries/DevIL/DevIL.SlackBuild
+++ b/libraries/DevIL/DevIL.SlackBuild
@@ -6,11 +6,14 @@
# Modified by Dugan Chen
# Yth | Pont-en-Royans, France | yth@ythogtha.org
+# 20220416 bkw: Modified by SlackBuilds.org, BUILD=4:
+# - remove some junk from the doc dir (Makefile, DocBuilder.java, etc).
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=DevIL
VERSION=${VERSION:-1.8.0}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +25,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
@@ -59,9 +59,9 @@ cd $PRGNAM
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 {} \+
if [ "$LIBDIRSUFFIX" = "64" ]; then
patch -p1 < $CWD/lib64.diff
@@ -75,14 +75,14 @@ cd DevIL/build
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..
make
- make install DESTDIR=$PKG
+ make install/strip DESTDIR=$PKG
cd ../..
-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
+# 20220416 bkw: remove some cruft that isn't documentation:
+rm -f DevIL-docs/{Makefile,*.dtd,*.xml,*.java}
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a LICENSE README.md DevIL-docs/ DevIL/CREDITS DevIL/INSTALL DevIL/NEWS \
+cp -a LICENSE README.md DevIL-docs/ DevIL/CREDITS DevIL/NEWS \
DevIL/Libraries.txt DevIL/README.cmake \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild