diff --git a/office/adobe-reader-fontpacks/adobe-reader-fontpacks.SlackBuild b/office/adobe-reader-fontpacks/adobe-reader-fontpacks.SlackBuild index d6ff916578..93e50f27b2 100644 --- a/office/adobe-reader-fontpacks/adobe-reader-fontpacks.SlackBuild +++ b/office/adobe-reader-fontpacks/adobe-reader-fontpacks.SlackBuild @@ -26,7 +26,10 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=adobe-reader-fontpacks VERSION=${VERSION:-9.1} -ARCH=i486 +# SRCARCH/ARCH should avoid linter warnings +# DW 2023-05-15 +SRCARCH=i486 +ARCH=i586 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -43,14 +46,20 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf ???KIT xtdfont +# Use this as our tmp directory. Safer than rm'ing globbed dirs in $TMP +# DW 2023-05-15 +rm -rf $PRGNAM-$VERSION +mkdir $PRGNAM-$VERSION +cd $PRGNAM-$VERSION -LIST=$(ls $CWD/FontPack910_???_i486-linux.tar.bz2 2>/dev/null || (echo "ERROR: no FontPack tarball available, you need at least one of the files listed in the info file to build the package." > /dev/stderr ; exit 1)) +# builtin echo rather than ls +# DW 2023-05-15 +LIST=$(echo $CWD/FontPack910_???_${SRCARCH}-linux.tar.bz2 2>/dev/null || (echo "ERROR: no FontPack tarball available, you need at least one of the files listed in the info file to build the package." > /dev/stderr ; exit 1)) mkdir $PKG/opt @@ -68,10 +77,12 @@ do cd - done -rm $PKG/opt/INSTALL +rm -f $PKG/opt/INSTALL mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -mv $PKG/opt/LICREAD.TXT \ +# Not all packs have LICREAD.TXT +# DW 2023-05-15 +[ -e $PKG/opt/LICREAD.TXT ] && cp -a $PKG/opt/LICREAD.TXT \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild