summaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorTim Dickson <dickson.tim@googlemail.com>2020-09-12 13:02:45 +0100
committerDave Woodfall <dave@slackbuilds.org>2020-09-12 13:02:45 +0100
commitccc6b6186e1daba89ab84b80b7b8baf7a96a7d85 (patch)
treed4a235373ede773edc40cc6afeedf315d580e5da /academic
parent581c850cb4c7f630bc7d9d03aad36d4e7871c2ba (diff)
downloadslackbuilds-ccc6b6186e1daba89ab84b80b7b8baf7a96a7d85.tar.gz
academic/xiphos: Fix man location.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/xiphos/xiphos.SlackBuild11
1 files changed, 3 insertions, 8 deletions
diff --git a/academic/xiphos/xiphos.SlackBuild b/academic/xiphos/xiphos.SlackBuild
index e371fc5854..ee8a4f4379 100644
--- a/academic/xiphos/xiphos.SlackBuild
+++ b/academic/xiphos/xiphos.SlackBuild
@@ -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