aboutsummaryrefslogtreecommitdiff
path: root/gis
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2018-12-05 12:43:39 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-12-09 13:17:13 +0700
commite46fa89254fd8bd0491eef982bc154f099bd1f3b (patch)
treec0e6dcf6afef043b831df9268fa424022e07de9f /gis
parent836b4ad4e74b09f9d8b93ee657d298b504f60f7e (diff)
gis/pktools: Fix install directory and add docs.
Diffstat (limited to 'gis')
-rw-r--r--gis/pktools/pktools.SlackBuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/gis/pktools/pktools.SlackBuild b/gis/pktools/pktools.SlackBuild
index 77ab525cbc7ae..ca31debb15cec 100644
--- a/gis/pktools/pktools.SlackBuild
+++ b/gis/pktools/pktools.SlackBuild
@@ -27,7 +27,7 @@
PRGNAM=pktools
SRCNAM=$(echo $PRGNAM | tr "[a-z]" "[A-Z]")
VERSION=${VERSION:-2.6.7.6}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -80,7 +80,10 @@ cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DINSTALL_LIBRARY_DIR=lib${LIBDIRSUFFIX} \
+ -DBUILD_SHARED_LIBS=ON \
-DBUILD_WITH_FANN=$WITH_FANN \
-DBUILD_WITH_LIBLAS=$WITH_LIBLAS \
..
@@ -89,11 +92,17 @@ cd build
make install DESTDIR=$PKG
cd ..
+cd doc
+ doxygen
+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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cp -ar \
+ AUTHORS COPYING doc/html \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install