aboutsummaryrefslogtreecommitdiff
path: root/libraries/qt3/qt3.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/qt3/qt3.SlackBuild')
-rw-r--r--libraries/qt3/qt3.SlackBuild30
1 files changed, 16 insertions, 14 deletions
diff --git a/libraries/qt3/qt3.SlackBuild b/libraries/qt3/qt3.SlackBuild
index 04b9df95b5f89..5353566b022ae 100644
--- a/libraries/qt3/qt3.SlackBuild
+++ b/libraries/qt3/qt3.SlackBuild
@@ -29,13 +29,8 @@
# This is based on the original SlackBuild from /extra/kde-compat in
# Slackware 13.1
-# Adapted for SlackBuilds.org by Niels Horn <email removed>
-# - moved building from /opt to $TMP
-# - included patch for new libpng (based on work by Stuart Winter)
-# Revision date 2012/08/09
-
+# 20200226 bkw: quit spamming /root, no change to package
# 20180209 bkw: fix download link, pkgs.fedoraproject.org is now toast.
-
# 20170324 bkw:
# - take over maintenance.
# - i486=>i586.
@@ -43,6 +38,11 @@
# - minor fix: stripping -jN from MAKEFLAGS failed, if N>9 (or if
# less than 9, with leading zero(es): -j05 for example).
+# Adapted for SlackBuilds.org by Niels Horn <email removed>
+# - moved building from /opt to $TMP
+# - included patch for new libpng (based on work by Stuart Winter)
+# Revision date 2012/08/09
+
# TODO: fix these:
#sbrun: WARNING: files altered outside the sandbox:
#u /root/.qt/.qt_plugins_3.3rc.lock
@@ -113,14 +113,16 @@ patch -p1 < $CWD/qt3_gcc47.patch
# Make sure ownerships and permissions are sane:
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 {} \+
-
-# And here's what we are currently using. The "yes" agrees to the GPL, so don't run this script if you
-# don't agree. :-)
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+# 20200226 bkw: don't write to /root/.qt, keep it all in the sandbox.
+# This doesn't change the resulting package, so BUILD stays the same.
+export CCACHE_DIR=${CCACHE_DIR:-$HOME/.ccache}
+export HOME=$( pwd )
+
+# And here's what we are currently using.
+# The "yes" agrees to the GPL, so don't run this script if you don't agree. :-)
echo "yes" | \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \