summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/PaleMoon/PaleMoon.SlackBuild17
-rw-r--r--network/PaleMoon/README7
2 files changed, 18 insertions, 6 deletions
diff --git a/network/PaleMoon/PaleMoon.SlackBuild b/network/PaleMoon/PaleMoon.SlackBuild
index 4a76d4258e..51b97bc529 100644
--- a/network/PaleMoon/PaleMoon.SlackBuild
+++ b/network/PaleMoon/PaleMoon.SlackBuild
@@ -118,10 +118,9 @@ PATH=$TMP/autoconf-tmp/usr/bin:$PATH
# Build palemoon
cd $TMP
-SRCNAM=Pale-Moon-${VERSION}_Release
-rm -rf $SRCNAM
-tar xvf $CWD/$SRCNAM.tar.gz
-cd $SRCNAM
+rm -rf Pale-Moon-${VERSION}_Release
+tar xzvf $CWD/${VERSION}_Release.tar.gz || tar xzvf $CWD/Pale-Moon-${VERSION}_Release.tar.gz
+cd Pale-Moon-${VERSION}_Release
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -143,6 +142,14 @@ export MOZ_MAKE_FLAGS=$MAKEFLAGS
export CFLAGS="$SLKCFLAGS"
export CXXFLAGS="$SLKCFLAGS"
+# Dev tools are enabled by default in the official binaries, so we should do the same here;
+# passing DEVTOOLS=no to the script, however, will disable them.
+if [ "$DEVTOOLS" = "no" ]; then
+ DEVTOOLS=""
+else
+ DEVTOOLS="--enable-devtools"
+fi
+
# Please see https://www.palemoon.org/redist.shtml for restrictions when using the official branding.
# Our building options, in a configure-like display ;)
OPTIONS="\
@@ -154,6 +161,7 @@ OPTIONS="\
--disable-mochitests \
--enable-jemalloc \
--with-pthreads \
+ $DEVTOOLS \
$DEBUG \
--x-libraries=/usr/lib${LIBDIRSUFFIX} \
--with-default-mozilla-five-home=/usr/lib${LIBDIRSUFFIX}/palemoon-$VERSION \
@@ -206,7 +214,6 @@ sed "s|@VERSION@|$VERSION|" $CWD/$PRGNAM.desktop \
> $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $TMP/$SRCNAM/{AUTHORS,LICENSE,README.md} $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/network/PaleMoon/README b/network/PaleMoon/README
index b540cc229e..efd712ab15 100644
--- a/network/PaleMoon/README
+++ b/network/PaleMoon/README
@@ -20,9 +20,14 @@ found here at SBo under the name palemoon.
See http://docs.slackware.com/howtos:software:palemoon for additional
tips and help resources.
+A native fork of FireFox's developer tools exists as an external add-on or
+internally. Pale Moon by default ships with the developer tools internally;
+if desired, use DEVTOOLS=no ./PaleMoon.SlackBuild to build Pale Moon without
+them.
+
If your processor doesn't support sse2 instructions or you get segfaults,
try looking in the SlackBuild for the OPTIMIZE build option (eventually
-refer to the palemoon developers for help).
+refer to the Pale Moon developers for help).
To enable debug information, pass the script the parameter
ENABLE_DEBUG=yes