summaryrefslogtreecommitdiffstats
path: root/network/PaleMoon/PaleMoon.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/PaleMoon/PaleMoon.SlackBuild')
-rw-r--r--network/PaleMoon/PaleMoon.SlackBuild21
1 files changed, 15 insertions, 6 deletions
diff --git a/network/PaleMoon/PaleMoon.SlackBuild b/network/PaleMoon/PaleMoon.SlackBuild
index 614a156911..d561b8bfc7 100644
--- a/network/PaleMoon/PaleMoon.SlackBuild
+++ b/network/PaleMoon/PaleMoon.SlackBuild
@@ -89,11 +89,11 @@ tar xvf $CWD/autoconf-2.13.tar.xz
cd autoconf-2.13
zcat $CWD/autoconf-2.13-consolidated_fixes-1.patch.gz | patch -p1 --verbose
chown -R root:root .
-find . \
- \( -perm 777 -o -perm 775 -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 {} \;
+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 {} \;
# Build a temporary copy of autoconf-2.13 only to be used to compile
# Pale Moon, since it somewhat inexplicably requires this ancient version:
@@ -135,6 +135,11 @@ if [ "$LIBDIRSUFFIX" = "64" ]; then
xpcom/io/nsAppFileLocationProvider.cpp
fi
+# Apply this patch so that PaleMoon will, not only compile with versions of sed earler
+# than 4.3, but also, compile with versions of sed 4.3 and later.
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850972
+patch -p1 < $CWD/icu.m4-adding-extra-bracket-to-not-confuse-grep.patch
+
export MOZBUILD_STATE_PATH="$TMP/Pale-Moon-${VERSION}_Release/moz.build"
export MOZCONFIG="$TMP/Pale-Moon-${VERSION}_Release/.mozconfig"
export MOZILLA_OFFICIAL=1
@@ -200,7 +205,11 @@ rm -rf usr/lib${LIBDIRSUFFIX}/palemoon-devel-$VERSION
# however, appear to fail on Slackware.
rm -f usr/lib${LIBDIRSUFFIX}/palemoon-$VERSION/palemoon-bin
-ln -s /usr/lib${LIBDIRSUFFIX}/palemoon-$VERSION/palemoon usr/bin/palemoon-$VERSION
+# Append a version suffix to the binary, if we desire to install this version of
+# PaleMoon along side any other version of PaleMoon.
+if [ "$APPEND_VERSION_SUFFIX" = "yes" ]; then
+ mv usr/bin/palemoon usr/bin/palemoon-$VERSION
+fi
# Use system provided Hunspell, if desired.
if [ "${USE_SYSTEM_HUNSPELL}" = "yes" ]; then