graphics/lddot: Install man page correctly.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-09-09 17:18:13 -04:00 committed by Willy Sudiarto Raharjo
parent 91eca18200
commit 67b0887549
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 14 additions and 10 deletions

View file

@ -2,14 +2,17 @@ lddot (graphically display shared library dependencies)
lddot is a wrapper over ldd, which produces output in Graphviz format.
Although not strictly required for lddot to run, it's *highly* recommended
to install graphviz and/or graph-easy. One of these will be required to
convert lddot's output into a visible graph.
Although not strictly required for lddot to run, it's *highly*
recommended to install graphviz and/or graph-easy. One of these will
be required to convert lddot's output into a visible graph.
Examples:
# Replace "boxart" with "ascii" if your terminal doesn't support Unicode.
# Replace boxart with ascii, if your terminal doesn't support Unicode.
lddot /bin/bash | graph-easy --as boxart
# This looks like the Death Star.
lddot /usr/bin/xterm | circo -Tpng > graph.png
Note: the example in the man page requires a terminal at least 120
columns wide, to format correctly.

View file

@ -6,19 +6,18 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20210909 bkw: BUILD=2, actually install the man page in /usr/man.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=lddot
VERSION=${VERSION:-0.2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -40,8 +39,10 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/bin $PKG/usr/man/man1
install -m0755 $PRGNAM $PKG/usr/bin
gzip -9c < doc/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
rm -f doc/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a doc/* $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,6 +1,6 @@
PRGNAM="lddot"
VERSION="0.2"
HOMEPAGE="http://jwilk.net/software/lddot"
HOMEPAGE="https://jwilk.net/software/lddot"
DOWNLOAD="https://github.com/jwilk/lddot/releases/download/0.2/lddot-0.2.tar.gz"
MD5SUM="d1c274a39208357ec963c33094bdccae"
DOWNLOAD_x86_64=""