From 48263557b3d05ff9208da03175975bccc101c076 Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Thu, 12 Apr 2018 21:42:05 -0700 Subject: [PATCH] gis/pgrouting: Script cleanup. Signed-off-by: Benjamin Trigona-Harany --- gis/pgrouting/pgrouting.SlackBuild | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) mode change 100755 => 100644 gis/pgrouting/pgrouting.SlackBuild diff --git a/gis/pgrouting/pgrouting.SlackBuild b/gis/pgrouting/pgrouting.SlackBuild old mode 100755 new mode 100644 index aa84a0483a..c79ca7ecf1 --- a/gis/pgrouting/pgrouting.SlackBuild +++ b/gis/pgrouting/pgrouting.SlackBuild @@ -2,7 +2,7 @@ # SlackBuild script for pgRouting -# Copyright 2013 Benjamin Trigona-Harany +# Copyright 2013-2018 Benjamin Trigona-Harany # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -66,10 +66,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $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 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -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 {} \; mkdir -p build cd build @@ -84,15 +84,17 @@ cd build make install DESTDIR=$PKG cd .. -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CONTRIBUTING.md LICENSE NEWS README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CONTRIBUTING.md LICENSE NEWS README.md \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild if [ "$WITH_DOC" = "ON" ]; then cp -r build/doc/html $PKG/usr/doc/$PRGNAM-$VERSION fi -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc