diff --git a/libraries/wcslib/wcslib.SlackBuild b/libraries/wcslib/wcslib.SlackBuild index 2282b99a50..da958e2213 100644 --- a/libraries/wcslib/wcslib.SlackBuild +++ b/libraries/wcslib/wcslib.SlackBuild @@ -22,12 +22,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220419 bkw: Modified by SlackBuilds.org, BUILD=3: +# - fix dir permissions in package (e.g. usr/man was 0775). +# - get rid of static lib. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=wcslib VERSION=${VERSION:-7.7} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +42,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -74,6 +74,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . +find . -type f -exec chmod 0644 {} \+ +find . -type d -exec chmod 0755 {} \+ # Paths for PGPLOT in case it is not set properly #PGPLOT_DIR="/usr/lib${LIBDIRSUFFIX}/pgplot" @@ -81,7 +83,7 @@ chown -R root:root . CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -./configure \ +sh ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ @@ -96,17 +98,20 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +gzip -9 $PKG/usr/man/man*/* -# Give root write permission on regular files as -# many of them get 444 permissions by default -find $PKG -type f -exec chmod u+w \{\} \; +# 20220419 bkw: --disable-static accepted and ignored, so: +rm -f $PKG/usr/lib*/*.a + +# Give root write permission on regular files as many of them get 444 +# permissions by default. +# 20220419 bkw: also, a lot of the directories are 775. +find $PKG -type f -exec chmod u+w {} \+ +find $PKG -type d -exec chmod 0755 {} \+ 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 -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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild