libraries/libslack: Fix file permissions.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2021-08-22 16:37:29 +12:00 committed by Willy Sudiarto Raharjo
parent 2c7c88184c
commit c49e1df392
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -72,6 +72,14 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
tar xvf $CWD/$PRGNAM-$VERSION-html.tar.gz
cd $PRGNAM-$VERSION-html
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 {} \;
cd ..
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \