gis/osm2pgrouting: Updated for version 2.3.4.

Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
This commit is contained in:
Benjamin Trigona-Harany 2018-04-02 20:13:51 -07:00
parent c38a576380
commit 54d25e625a
2 changed files with 10 additions and 9 deletions

View file

@ -2,7 +2,7 @@
# SlackBuild script for osm2pgrouting
# Copyright 2013 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# Copyright 2013-2018 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# 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=osm2pgrouting
VERSION=${VERSION:-2.3.3}
VERSION=${VERSION:-2.3.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -65,24 +65,25 @@ 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 {} \;
sed -i "s_/usr/share/bin_/usr/bin_" CMakeLists.txt
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
..
make VERBOSE=1
make install VERBOSE=1 DESTDIR=$PKG
make install DESTDIR=$PKG
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.md COPYING NEWS Readme.md $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS.md COPYING NEWS Readme.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="osm2pgrouting"
VERSION="2.3.3"
VERSION="2.3.4"
HOMEPAGE="http://pgrouting.org"
DOWNLOAD="https://github.com/pgRouting/osm2pgrouting/archive/v2.3.3/osm2pgrouting-2.3.3.tar.gz"
MD5SUM="0183318a3d502f90c02e61e651490330"
DOWNLOAD="https://github.com/pgRouting/osm2pgrouting/archive/v2.3.4/osm2pgrouting-2.3.4.tar.gz"
MD5SUM="c61dae9d4f3b3cf241bd145754e0ff68"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libpqxx pgrouting"