academic/xiphos: Fix man location.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
This commit is contained in:
Tim Dickson 2020-09-12 13:02:45 +01:00 committed by Dave Woodfall
parent 581c850cb4
commit ccc6b6186e

View file

@ -25,7 +25,7 @@
PRGNAM=xiphos
VERSION=${VERSION:-4.2.1}
CMVERSION=${CMVERSION:-3.17.2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -112,12 +112,11 @@ cmake -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
-DCMAKE_INSTALL_MANDIR=man \
-DHTMLHELP=ON \
-DCMAKE_BUILD_TYPE=Release \
-DDBUS=OFF -DSTRIP=ON -DPOSTINST=OFF -DGTKHTML=ON ..
#unfortunately this CMakeLists.txt ignores MAN_INSTALL_DIR so we fix it later
#cmake should have created make file so restore PATH
export PATH=$OLDPATH
make
@ -128,11 +127,7 @@ 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
#compress man pages. first, stick them in the right place..
mkdir -p $PKG/usr/man/man1
cp $PKG/usr/share/man/man1/$PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1
rm -rf $PKG/usr/share/man
#now to compress them
#compress man pages.
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