summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNitish Ragoomundun <lrugratz@gmail.com>2018-09-04 23:42:58 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-09-08 08:37:39 +0700
commitda11cb68fac51a0de1fd3ba7b9e39e1631cdb7a7 (patch)
tree4ca871762dafac8f8afb3d98b2131c20a0e4b639
parent7f0647b5168e20757b507c0deaa6e18ce48ce1d8 (diff)
downloadslackbuilds-da11cb68fac51a0de1fd3ba7b9e39e1631cdb7a7.tar.gz
libraries/wcslib: Updated for version 5.19.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--libraries/wcslib/wcslib.SlackBuild19
-rw-r--r--libraries/wcslib/wcslib.info6
2 files changed, 15 insertions, 10 deletions
diff --git a/libraries/wcslib/wcslib.SlackBuild b/libraries/wcslib/wcslib.SlackBuild
index 3bb417c0af..2a86fa0085 100644
--- a/libraries/wcslib/wcslib.SlackBuild
+++ b/libraries/wcslib/wcslib.SlackBuild
@@ -1,8 +1,8 @@
#!/bin/sh
-# Slackware build script for WCSLIB
+# Slackware build script for WCSLib
-# Copyright 2017 Nitish Ragoomundun, Mauritius
+# Copyright 2018 Nitish Ragoomundun, Mauritius
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=wcslib
-VERSION=${VERSION:-5.16}
+VERSION=${VERSION:-5.19.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,10 +61,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
+# Paths for PGPLOT in case it is not set properly
+PGPLOT_DIR="/usr/lib${LIBDIRSUFFIX}/pgplot"
+LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib${LIBDIRSUFFIX}/pgplot"
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -75,9 +79,9 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--with-cfitsio \
- --with-pgplot \
--with-cfitsiolib=/usr/lib${LIBDIRSUFFIX} \
--with-cfitsioinc=/usr/include \
+ --with-pgplot \
--with-pgplotlib=${PGPLOT_DIR} \
--with-pgplotinc=${PGPLOT_DIR} \
--with-x \
@@ -86,8 +90,9 @@ CXXFLAGS="$SLKCFLAGS" \
make -j1
make install DESTDIR=$PKG
-# fix crazy permissions
-chmod -R u+w,g-ws $PKG
+# Give root write permission on regular files as
+# many of them get 444 permissions by default
+find $PKG -type f -exec chmod u+w \{\} \;
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
diff --git a/libraries/wcslib/wcslib.info b/libraries/wcslib/wcslib.info
index 036897b008..5a3951006b 100644
--- a/libraries/wcslib/wcslib.info
+++ b/libraries/wcslib/wcslib.info
@@ -1,8 +1,8 @@
PRGNAM="wcslib"
-VERSION="5.16"
+VERSION="5.19.1"
HOMEPAGE="http://www.atnf.csiro.au/people/mcalabre/WCS/"
-DOWNLOAD="ftp://ftp.atnf.csiro.au/pub/software/wcslib/wcslib.tar.bz2"
-MD5SUM="8608b3e7f36a7d82a670c3569ad21817"
+DOWNLOAD="ftp://ftp.atnf.csiro.au/pub/software/wcslib/wcslib-5.19.1.tar.bz2"
+MD5SUM="3d4f34a16577111e901bd3710904dd78"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="cfitsio pgplot"