multimedia/nted: Clean up doc dir.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-01-03 18:10:14 -05:00 committed by Willy Sudiarto Raharjo
parent c4849e527b
commit 071adc3f80
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -24,6 +24,8 @@
# Modified by the SlackBuilds.org project
# 20230103 bkw: BUILD=3, get rid of useless install instructions.
# 20210910 bkw: fix build on -current (gcc11)
# TODO: occasionally nted segfaults on exit, fix if possible. It's
# difficult to reproduce, and when I compile with debugging symbols
@ -41,7 +43,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nted
VERSION=${VERSION:-1.10.18_12}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -63,7 +65,7 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
# 20210910 bkw: NEWS and ChangeLog are 0-byte placeholders, ignore
DOCS="ABOUT* AUTHORS COPYING* FAQ INSTALL README"
DOCS="ABOUT* AUTHORS COPYING* FAQ README"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
@ -125,9 +127,10 @@ make
make install-strip DESTDIR=$PKG
gzip -9 $PKG/usr/man/man?/*.*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC
cp -a $DOCS $PKGDOC
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
# Overwrite shipped .desktop file with fixed one that validates
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop