libraries/DevIL: Fix docs.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2022-04-16 17:23:27 -04:00
parent f1bf2b68b3
commit 9bab56d3fe

View file

@ -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