aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-24 15:29:38 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-24 15:29:38 -0400
commitcd581283b91dad9b2bab0dd9cc6e5fe5061e4a41 (patch)
tree2c3bcd5fe6624733f8d39cb9de9db66a9a5e958c
parent81d952d4fbacf017efe46e7c8534c902d7e15fe9 (diff)
libraries/qt-assistant-compat: Fix doc permissions.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r--libraries/qt-assistant-compat/qt-assistant-compat.SlackBuild20
1 files changed, 10 insertions, 10 deletions
diff --git a/libraries/qt-assistant-compat/qt-assistant-compat.SlackBuild b/libraries/qt-assistant-compat/qt-assistant-compat.SlackBuild
index f6b3a2f400367..7249b83d31b13 100644
--- a/libraries/qt-assistant-compat/qt-assistant-compat.SlackBuild
+++ b/libraries/qt-assistant-compat/qt-assistant-compat.SlackBuild
@@ -27,12 +27,15 @@
# http://www.archlinux.org/packages/extra/i686/qt-assistant-compat/
# 20220124 bkw: modified for -current qt4 build.
+# 20220424 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - fix doc permissions.
+# - i486 => i586.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=qt-assistant-compat
VERSION=${VERSION:-4.6.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -41,15 +44,12 @@ SRCDIR=qt-assistant-qassistantclient-library-compat-version
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
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
@@ -59,8 +59,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -86,9 +86,9 @@ cd $SRCDIR-$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 \
+ -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} \+
# The patch is from Archlinux, as mentioned above.
# For Archlinux it has been taken from Debian. Thank you both!
@@ -128,7 +128,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
+install -m0644 \
LGPL_EXCEPTION.txt LICENSE.LGPL LICENSE.GPL3 \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild