aboutsummaryrefslogtreecommitdiff
path: root/network/PaleMoon/PaleMoon.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/PaleMoon/PaleMoon.SlackBuild')
-rw-r--r--network/PaleMoon/PaleMoon.SlackBuild17
1 files changed, 12 insertions, 5 deletions
diff --git a/network/PaleMoon/PaleMoon.SlackBuild b/network/PaleMoon/PaleMoon.SlackBuild
index 4a76d4258e715..51b97bc529f8a 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