summaryrefslogtreecommitdiff
path: root/system/snapscreenshot/snapscreenshot.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-08-23 15:02:27 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:51:36 +0700
commit18069bb96280d4dbbceb909190df1d0572f4e51f (patch)
tree080df29aed032845dc3d5846a0b26206fdfa288f /system/snapscreenshot/snapscreenshot.SlackBuild
parenta7f926e67d91feec8b7687697af8cf9c03a86800 (diff)
downloadslackbuilds-18069bb96280d4dbbceb909190df1d0572f4e51f.tar.gz
system/snapscreenshot: Updated for version 1.0.15.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/snapscreenshot/snapscreenshot.SlackBuild')
-rw-r--r--system/snapscreenshot/snapscreenshot.SlackBuild14
1 files changed, 5 insertions, 9 deletions
diff --git a/system/snapscreenshot/snapscreenshot.SlackBuild b/system/snapscreenshot/snapscreenshot.SlackBuild
index f84349c7f3..ecb2494eeb 100644
--- a/system/snapscreenshot/snapscreenshot.SlackBuild
+++ b/system/snapscreenshot/snapscreenshot.SlackBuild
@@ -6,10 +6,12 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210823 bkw: update for v1.0.15.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=snapscreenshot
-VERSION=${VERSION:-1.0.14.3}
+VERSION=${VERSION:-1.0.15}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +24,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
@@ -57,11 +56,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
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 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# It's really annoying to have errors sent to stdout, when the main
# way to use the program is to redirect stdout to a file...