mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-06 08:26:50 +01:00
academic/xiphos: Fix man location.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
This commit is contained in:
parent
581c850cb4
commit
ccc6b6186e
1 changed files with 3 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue