summaryrefslogtreecommitdiffstats
path: root/development/mit-scheme/mit-scheme.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/mit-scheme/mit-scheme.SlackBuild')
-rw-r--r--development/mit-scheme/mit-scheme.SlackBuild18
1 files changed, 18 insertions, 0 deletions
diff --git a/development/mit-scheme/mit-scheme.SlackBuild b/development/mit-scheme/mit-scheme.SlackBuild
index 9808312aaa..44e1068877 100644
--- a/development/mit-scheme/mit-scheme.SlackBuild
+++ b/development/mit-scheme/mit-scheme.SlackBuild
@@ -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