summaryrefslogtreecommitdiff
path: root/academic/GMT/GMT.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/GMT/GMT.SlackBuild')
-rw-r--r--academic/GMT/GMT.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/academic/GMT/GMT.SlackBuild b/academic/GMT/GMT.SlackBuild
index 4653d28fc2..4d43b6d7b1 100644
--- a/academic/GMT/GMT.SlackBuild
+++ b/academic/GMT/GMT.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=GMT
-VERSION=4.5.8
+VERSION=${VERSION:-4.5.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -42,8 +42,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-COASTNAME=gshhs
-COASTVER=2.2.0
+COASTNAME=gshhg-gmt-nc3
+COASTVER=2.2.3
# Shewchuk's triangulation routine used in some parts of GMT is not
# distributed under the GNU Public Licence. If you work for a for-profit
@@ -91,7 +91,13 @@ tar xvf $CWD/${SRCNAM}-${VERSION}.tar.bz2
tar xvf $CWD/${COASTNAME}-${COASTVER}.tar.bz2 -C ${PRGNAM}${VERSION}
cd ${PRGNAM}${VERSION}
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+patch -p0 < $CWD/gmtdigitize.patch
LDFLAGS="-L/usr/lib$LIBDIRSUFFIX -L/lib$LIBDIRSUFFIX" \
CFLAGS="$SLKCFLAGS" \
@@ -122,7 +128,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog LICENSE.TXT README README.TXT $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ChangeLog LICENSE.TXT README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} +