aboutsummaryrefslogtreecommitdiff
path: root/haskell/haskell-ShellCheck/haskell-ShellCheck.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'haskell/haskell-ShellCheck/haskell-ShellCheck.SlackBuild')
-rw-r--r--haskell/haskell-ShellCheck/haskell-ShellCheck.SlackBuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/haskell/haskell-ShellCheck/haskell-ShellCheck.SlackBuild b/haskell/haskell-ShellCheck/haskell-ShellCheck.SlackBuild
index e55980efa7..85794f8be2 100644
--- a/haskell/haskell-ShellCheck/haskell-ShellCheck.SlackBuild
+++ b/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