development/mit-scheme: Fixed file ownership.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2016-01-16 15:19:06 +00:00 committed by Willy Sudiarto Raharjo
parent 63be72b3da
commit 48c94da3b7

View file

@ -96,6 +96,12 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
# take prebuilt info doc rather than build them by ourselves
mkdir -p $PKG/usr/info
tar xvf $CWD/$PRGNAM-$VERSION-doc-info.tar.gz
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 {} \;
cp -a $PRGNAM-$VERSION/doc/*.info $PKG/usr/info
find $PKG/usr/info -type f -exec gzip -9 {} \;
rm -rf $PRGNAM-$VERSION
@ -103,12 +109,24 @@ rm -rf $PRGNAM-$VERSION
# ditto for html ones
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
tar xvf $CWD/$PRGNAM-$VERSION-doc-html.tar.gz
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 {} \;
cp -a $PRGNAM-$VERSION/doc/* $PKG/usr/doc/$PRGNAM-$VERSION/html
rm -rf $PRGNAM-$VERSION
# ditto for pdf ones
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/pdf
tar xvf $CWD/$PRGNAM-$VERSION-doc-pdf.tar.gz
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 {} \;
cp -a $PRGNAM-$VERSION/doc/* $PKG/usr/doc/$PRGNAM-$VERSION/pdf
rm -rf $PRGNAM-$VERSION