Browse Source

haskell/haskell-ShellCheck: Optionally build man page.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/227/head
Andrew Clemons 2 years ago
committed by Willy Sudiarto Raharjo
parent
commit
688f8c5565
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 3
      haskell/haskell-ShellCheck/README
  2. 10
      haskell/haskell-ShellCheck/haskell-ShellCheck.SlackBuild

3
haskell/haskell-ShellCheck/README

@ -1,5 +1,8 @@
haskell-ShellCheck - shell script analysis tool
Optional dependencies are pandoc or pandoc-bin to be able to
generate the manpage.
The goals of ShellCheck are:
* To point out and clarify typical beginner's syntax issues, that cause

10
haskell/haskell-ShellCheck/haskell-ShellCheck.SlackBuild

@ -115,6 +115,16 @@ mv $SRCNAM-$VERSION.conf $PKG/$PKGCONFD/$PKGID.conf
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
if command -v pandoc > /dev/null 2>&1 ; then
chmod +x ./manpage
./manpage
mkdir -p $PKG/usr/man/man1
install -m644 shellcheck.1 $PKG/usr/man/man1/shellcheck.1
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
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

Loading…
Cancel
Save