summaryrefslogtreecommitdiffstats
path: root/gis/openorienteering-mapper/openorienteering-mapper.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/openorienteering-mapper/openorienteering-mapper.SlackBuild')
-rw-r--r--gis/openorienteering-mapper/openorienteering-mapper.SlackBuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/gis/openorienteering-mapper/openorienteering-mapper.SlackBuild b/gis/openorienteering-mapper/openorienteering-mapper.SlackBuild
index a3c543cee5..781f9447a8 100644
--- a/gis/openorienteering-mapper/openorienteering-mapper.SlackBuild
+++ b/gis/openorienteering-mapper/openorienteering-mapper.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for OpenOrienteering Mapper
-# Copyright 2016-2017, Nikolay Korotkiy <sikmir@gmail.com>
+# Copyright 2016-2018, Nikolay Korotkiy <sikmir@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openorienteering-mapper
-VERSION=${VERSION:-0.7.0}
+VERSION=${VERSION:-0.8.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -72,16 +72,15 @@ find -L . \
mkdir -p build
cd build
cmake \
+ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLICENSING_PROVIDER:BOOL=OFF \
-DMapper_PACKAGE_NAME=$PRGNAM \
- -Wno-dev \
- -DCMAKE_BUILD_TYPE=Release ..
+ -Wno-dev ..
make
make install DESTDIR=$PKG
- rm -fr $PKG/DEBIAN
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -92,6 +91,8 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING INSTALL.md README.md $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/openorienteering-mapper/* $PKG/usr/doc/$PRGNAM-$VERSION
+rm -rf $PKG/usr/share/doc
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install