aboutsummaryrefslogtreecommitdiff
path: root/graphics/fontforge
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2022-04-11 22:56:07 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-16 12:12:36 +0700
commitec5e259249258da0cd3b0cc76173c9d69756c383 (patch)
treeb5cf234b3aac481346c45670fdbabf2fe2777841 /graphics/fontforge
parentcc5a686e9372187653ab1edbee7720087dbe1ffe (diff)
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/fontforge')
-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 c63a69f8d4773..905f220e67096 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 {} \+