aboutsummaryrefslogtreecommitdiff
path: root/academic/osm2pgsql/osm2pgsql.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/osm2pgsql/osm2pgsql.SlackBuild')
-rw-r--r--academic/osm2pgsql/osm2pgsql.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/academic/osm2pgsql/osm2pgsql.SlackBuild b/academic/osm2pgsql/osm2pgsql.SlackBuild
index 7159a25f70c17..2842d03d46e6d 100644
--- a/academic/osm2pgsql/osm2pgsql.SlackBuild
+++ b/academic/osm2pgsql/osm2pgsql.SlackBuild
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=osm2pgsql
-VERSION=${VERSION:-0.81.0}
+VERSION=${VERSION:-0.84.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -39,9 +39,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# downloading tarballs from GitHub gives you an extensionless file with this name
-GITREV=af61cae
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -62,8 +59,12 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$GITREV
-cd openstreetmap-$PRGNAM-$GITREV
+if [ -e $CWD/$VERSION.tar.gz ]; then
+ tar xvf $CWD/$VERSION.tar.gz
+else
+ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+fi
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \