summaryrefslogtreecommitdiff
path: root/gis/pgrouting/pgrouting.SlackBuild
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2015-09-07 21:26:30 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-09-12 08:11:32 +0700
commit08776bda95200b97b4ef0952b11adb08279e96b7 (patch)
tree90a5f023c3fe96291792e1a461b7d6b82f1d5277 /gis/pgrouting/pgrouting.SlackBuild
parent169d490f3c0b08511b4cb2a38601bff3d679ac78 (diff)
downloadslackbuilds-08776bda95200b97b4ef0952b11adb08279e96b7.tar.gz
gis/pgrouting: Updated for version 2.1.0.
Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
Diffstat (limited to 'gis/pgrouting/pgrouting.SlackBuild')
-rw-r--r--gis/pgrouting/pgrouting.SlackBuild12
1 files changed, 4 insertions, 8 deletions
diff --git a/gis/pgrouting/pgrouting.SlackBuild b/gis/pgrouting/pgrouting.SlackBuild
index 6a981de880..7ca15fb9a4 100644
--- a/gis/pgrouting/pgrouting.SlackBuild
+++ b/gis/pgrouting/pgrouting.SlackBuild
@@ -25,7 +25,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pgrouting
-VERSION=${VERSION:-2.0.0}
+VERSION=${VERSION:-2.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,14 +60,10 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-rm -rf $TMP/$PRGNAM-$VERSION
+rm -rf $TMP/$PRGNAM-$PRGNAM-$VERSION
cd $TMP
-if [ -e $CWD/v$VERSION.tar.gz ]; then
- tar xvf $CWD/v$VERSION.tar.gz
-else
- tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-fi
-cd $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
+cd $PRGNAM-$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 \) \