summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
author Dave Woodfall <dave@slackbuilds.org>2022-04-11 22:56:07 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-16 12:12:36 +0700
commitec5e259249258da0cd3b0cc76173c9d69756c383 (patch)
treeb5cf234b3aac481346c45670fdbabf2fe2777841 /graphics
parentcc5a686e9372187653ab1edbee7720087dbe1ffe (diff)
downloadslackbuilds-ec5e259249258da0cd3b0cc76173c9d69756c383.tar.gz
slackbuilds-ec5e259249258da0cd3b0cc76173c9d69756c383.tar.xz
graphics/fontforge: Fix doc location.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/fontforge/fontforge.SlackBuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/graphics/fontforge/fontforge.SlackBuild b/graphics/fontforge/fontforge.SlackBuild
index c63a69f8d4..905f220e67 100644
--- a/graphics/fontforge/fontforge.SlackBuild
+++ b/graphics/fontforge/fontforge.SlackBuild
@@ -39,7 +39,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=fontforge
VERSION=${VERSION:-20201107}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -144,8 +144,13 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
-rm -rf $PKG/usr/share/doc
+
+# Move docs
+if [ -d $PKG/usr/share/doc/$PRGNAM/ ]; then
+ mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
+ rm -rf $PKG/usr/share/doc
+fi
+
cp -a AUTHORS LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc -type f -exec chmod 644 {} \+