aboutsummaryrefslogtreecommitdiff
path: root/gis/GMT/GMT.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/GMT/GMT.SlackBuild')
-rw-r--r--gis/GMT/GMT.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/gis/GMT/GMT.SlackBuild b/gis/GMT/GMT.SlackBuild
index 6e93a55818ffd..b6b7a68a77abd 100644
--- a/gis/GMT/GMT.SlackBuild
+++ b/gis/GMT/GMT.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=GMT
SRCNAM=gmt
-VERSION=${VERSION:-6.4.0}
+VERSION=${VERSION:-6.5.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -115,11 +115,15 @@ cd build
-DLICENSE_RESTRICTED=$LICFLAG \
-DCMAKE_BUILD_TYPE=Release ..
make all
- make docs_man
- make docs_html
make install DESTDIR=$PKG
cd ..
+# Remove unwanted empty dirs
+#rmdir $PKG/usr/doc/GMT-$VERSION/html/_video_thumbnail
+#rmdir $PKG/usr/man/man1/_video_thumbnail
+find $PKG/usr/doc/GMT-$VERSION/html -type d -empty -print0 | xargs -0 -I {} /usr/bin/rmdir "{}"
+find $PKG/usr/man/man1/ -type d -empty -print0 | xargs -0 -I {} /usr/bin/rmdir "{}"
+
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
@@ -127,7 +131,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 BUILDING.md INSTALL.md LICENSE.TXT README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a BUILDING.md LICENSE.TXT README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install