summaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
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