From d75892479fc8cde51160da39312c4d0de2d8902d Mon Sep 17 00:00:00 2001 From: "Ryan P.C. McQuen" Date: Sat, 30 May 2015 14:00:54 -0700 Subject: libraries/allegro: Add man pages. Thanks to Eugene and Dimitris Zlatanidis. Signed-off-by: Ryan P.C. McQuen --- libraries/allegro/allegro.SlackBuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libraries/allegro') diff --git a/libraries/allegro/allegro.SlackBuild b/libraries/allegro/allegro.SlackBuild index e3d8b983f6af..622ae3670859 100644 --- a/libraries/allegro/allegro.SlackBuild +++ b/libraries/allegro/allegro.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=allegro VERSION=${VERSION:-5.0.11} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -86,6 +86,12 @@ cd .. 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 +## install man pages, thanks to Dimitris Zlatanidis +mkdir -p $PKG/usr/man/man3 +install -m 0644 docs/man/* $PKG/usr/man/man3 +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 + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS \ $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3