aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-19 16:34:53 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-19 16:34:53 -0400
commiteaed9c30b58ce3a71474d87bd34eaff34cca9c74 (patch)
tree6cd76b3b93eafb9ad4b4527e38f13419e0a8f3dd
parent1024c1ae414c6aed1d7b7d84594129372ee38d27 (diff)
libraries/xview: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r--libraries/xview/xview.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/libraries/xview/xview.SlackBuild b/libraries/xview/xview.SlackBuild
index bda621db01ed0..17e4420301bad 100644
--- a/libraries/xview/xview.SlackBuild
+++ b/libraries/xview/xview.SlackBuild
@@ -23,6 +23,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220419 bkw: BUILD=3
+# - move docs to correct Slackware doc dir (no /usr/share/doc).
+# - remove empty /usr/xview dir.
+# - symlink examples to doc dir.
# 20200524 bkw:
# - take over maintenance, BUILD=2
# - add partial 64-bit support (olwm and olvwm work, apps don't)
@@ -34,7 +38,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xview
VERSION=${VERSION:-3.2p4}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -129,9 +133,15 @@ gzip -9 $PKG/usr/man/man?/*
mkdir -p $PKG/etc/X11/xinit
install -m0755 -oroot -groot $CWD/xinitrc.* $PKG/etc/X11/xinit
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README CHANGELOG LEGAL_NOTICE $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -rf $PKG/usr/$PRGNAM
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a README CHANGELOG LEGAL_NOTICE $PKGDOC
+mv $PKG/usr/share/doc/$PRGNAM/* $PKGDOC
+rm -rf $PKG/usr/share/doc
+ln -s ../../share/$PRGNAM/examples $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc