Browse Source

gis/openorienteering-mapper: Updated for version 0.8.2.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
pull/47/head
Nikolay Korotkiy 7 years ago
committed by Willy Sudiarto Raharjo
parent
commit
7e68ddf70b
No known key found for this signature in database GPG Key ID: 887B8374D7333381
  1. 12
      gis/openorienteering-mapper/fix_doc_path.diff
  2. 7
      gis/openorienteering-mapper/openorienteering-mapper.SlackBuild
  3. 6
      gis/openorienteering-mapper/openorienteering-mapper.info

12
gis/openorienteering-mapper/fix_doc_path.diff

@ -0,0 +1,12 @@
diff -Naur mapper-0.8.2.orig/CMakeLists.txt mapper-0.8.2/CMakeLists.txt
--- mapper-0.8.2.orig/CMakeLists.txt 2018-08-12 11:01:50.129865377 +0300
+++ mapper-0.8.2/CMakeLists.txt 2018-08-12 11:03:52.807861119 +0300
@@ -152,7 +152,7 @@
set(MAPPER_RUNTIME_DESTINATION "bin")
set(MAPPER_LIBRARY_DESTINATION "lib/${Mapper_PACKAGE_NAME}")
set(MAPPER_DATA_DESTINATION "share/${Mapper_PACKAGE_NAME}")
- set(MAPPER_ABOUT_DESTINATION "share/doc/${Mapper_PACKAGE_NAME}")
+ set(MAPPER_ABOUT_DESTINATION "doc/${Mapper_PACKAGE_NAME}-${Mapper_VERSION}")
endif()
if(CMAKE_CROSSCOMPILING)

7
gis/openorienteering-mapper/openorienteering-mapper.SlackBuild

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openorienteering-mapper
VERSION=${VERSION:-0.8.1}
VERSION=${VERSION:-0.8.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -69,6 +69,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -p1 < $CWD/fix_doc_path.diff
mkdir -p build
cd build
cmake \
@ -89,10 +91,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mv $PKG/usr/share/man $PKG/usr
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

6
gis/openorienteering-mapper/openorienteering-mapper.info

@ -1,8 +1,8 @@
PRGNAM="openorienteering-mapper"
VERSION="0.8.1"
VERSION="0.8.2"
HOMEPAGE="https://www.openorienteering.org/apps/mapper/"
DOWNLOAD="https://github.com/OpenOrienteering/mapper/archive/v0.8.1/mapper-0.8.1.tar.gz"
MD5SUM="203aa28e8fba24772f600ec9a55b3df9"
DOWNLOAD="https://github.com/OpenOrienteering/mapper/archive/v0.8.2/mapper-0.8.2.tar.gz"
MD5SUM="e84499ee9bb8d005537fe0581cdfc615"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gdal polyclipping proj qt5"

Loading…
Cancel
Save