development/scratch: Fix perms.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-05-15 00:21:58 +07:00
parent ca8fe08c18
commit f6fbb36773

View file

@ -2,7 +2,7 @@
# Slackware build script for scratch
# Copyright 2013 Willy Sudiarto Raharjo <willysr@slackware-id.org>
# Copyright 2013-2016 Willy Sudiarto Raharjo <willysr@slackware-id.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -62,13 +62,12 @@ cd $TMP
rm -rf $PRGNAM-$VERSION.src
tar xvf $CWD/$PRGNAM-$VERSION.src.tar.gz
cd $PRGNAM-$VERSION.src
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 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 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
make build
@ -108,12 +107,10 @@ chmod -R 0755 $PKG/usr/share/icons/hicolor
cp -rf Plugins $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/help
cp -a \
ACKNOWLEDGEMENTS KNOWN-BUGS LICENSE NOTICE README TRADEMARK_POLICY \
cp -a ACKNOWLEDGEMENTS KNOWN-BUGS LICENSE NOTICE README TRADEMARK_POLICY \
$PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
Help/en/* \
$PKG/usr/doc/$PRGNAM-$VERSION/help
cp -a Help/en/* $PKG/usr/doc/$PRGNAM-$VERSION/help
chmod 755 $PKG/usr/doc/$PRGNAM-$VERSION/help/images
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild