mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
development/txt2man: Added (convert text to man pages).
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
fbc4b87102
commit
969cac1791
4 changed files with 93 additions and 0 deletions
11
development/txt2man/README
Normal file
11
development/txt2man/README
Normal file
|
@ -0,0 +1,11 @@
|
|||
txt2man (create man pages from plain text)
|
||||
|
||||
txt2man converts the input text into nroff/troff standard man(7)
|
||||
macros used to format Unix manual pages. Nice pages can be generated
|
||||
specially for commands (section 1 or 8) or for C functions reference
|
||||
(sections 2, 3), with the ability to recognize and format command and
|
||||
function names, flags, types and arguments.
|
||||
|
||||
txt2man is also able to recognize and format sections, paragraphs,
|
||||
lists (standard, numbered, description, nested), cross references and
|
||||
literal display blocks.
|
19
development/txt2man/slack-desc
Normal file
19
development/txt2man/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
txt2man: txt2man (create man pages from plain text)
|
||||
txt2man:
|
||||
txt2man: txt2man converts the input text into nroff/troff standard man(7)
|
||||
txt2man: macros used to format Unix manual pages. Nice pages can be generated
|
||||
txt2man: specially for commands (section 1 or 8) or for C functions reference
|
||||
txt2man: (sections 2, 3), with the ability to recognize and format command and
|
||||
txt2man: function names, flags, types and arguments.
|
||||
txt2man:
|
||||
txt2man:
|
||||
txt2man:
|
||||
txt2man:
|
53
development/txt2man/txt2man.SlackBuild
Normal file
53
development/txt2man/txt2man.SlackBuild
Normal file
|
@ -0,0 +1,53 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Slackware build script for txt2man
|
||||
|
||||
# Written by B. Watson (urchlay@slackware.uk)
|
||||
|
||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=txt2man
|
||||
VERSION=${VERSION:-1.7.1}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
ARCH=noarch
|
||||
|
||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$PRGNAM-$VERSION
|
||||
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 {} +
|
||||
|
||||
sed -i 's,/share/man,/man,' Makefile
|
||||
mkdir -p $PKG/usr/{bin,man/man1}
|
||||
make install prefix=$PKG/usr
|
||||
gzip -9 $PKG/usr/man/man*/*
|
||||
|
||||
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mkdir -p $PKGDOC
|
||||
cp -a COPYING* Change* README* $PKGDOC
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
10
development/txt2man/txt2man.info
Normal file
10
development/txt2man/txt2man.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="txt2man"
|
||||
VERSION="1.7.1"
|
||||
HOMEPAGE="https://github.com/mvertes/txt2man"
|
||||
DOWNLOAD="https://github.com/mvertes/txt2man/archive/txt2man-1.7.1/txt2man-txt2man-1.7.1.tar.gz"
|
||||
MD5SUM="0c587fda9780ade673ccbfc6d5b98fc9"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="B. Watson"
|
||||
EMAIL="urchlay@slackware.uk"
|
Loading…
Reference in a new issue