libraries/allegro: Add man pages.

Thanks to Eugene and Dimitris Zlatanidis.

Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
This commit is contained in:
Ryan P.C. McQuen 2015-05-30 14:00:54 -07:00 committed by Willy Sudiarto Raharjo
parent 65056995fe
commit d75892479f

View file

@ -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