aboutsummaryrefslogtreecommitdiff
path: root/network/palemoon/palemoon.SlackBuild
diff options
context:
space:
mode:
authorkhronosschoty <khronosschoty@posteo.org>2020-04-01 21:21:37 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-04-01 21:21:37 +0700
commit172283e60bbe3aa6b50d468be790ecff6c9c2cae (patch)
treef12f0db40182d66dbac111e6e47b114cbf0089d0 /network/palemoon/palemoon.SlackBuild
parent32300984bc039950d729ee9ecad0c2349bf42416 (diff)
network/palemoon: Updated for version 28.9.0.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/palemoon/palemoon.SlackBuild')
-rw-r--r--network/palemoon/palemoon.SlackBuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/network/palemoon/palemoon.SlackBuild b/network/palemoon/palemoon.SlackBuild
index b9240ffc2709..780f1fe2fcde 100644
--- a/network/palemoon/palemoon.SlackBuild
+++ b/network/palemoon/palemoon.SlackBuild
@@ -26,8 +26,9 @@
# Special thanks to Ponce
PRGNAM=palemoon
-VERSION=${VERSION:-28.8.4}
-SRCNAM=${SRCNAM:-UXP-PM${VERSION}_Release}
+VERSION=${VERSION:-28.9.0.2}
+SRCNAM1=${SRCNAM1:-Pale-Moon-${VERSION}_Release}
+SRCNAM2=${SRCNAM2:-UXP-RELBASE_20200324}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -141,9 +142,10 @@ PATH=$TMP/autoconf-tmp/usr/bin:$PATH
# Build Pale Moon
cd $TMP
-rm -rf $SRCNAM
-tar -xvf $CWD/$SRCNAM.tar.gz
-cd $SRCNAM
+rm -rf $SRCNAM1
+tar -xvf $CWD/$SRCNAM1.tar.gz
+cd $SRCNAM1
+tar -xvf $CWD/$SRCNAM2.tar.gz -C platform --strip-components 1
if [ "${ADNAUSEAM:-block}" = "unblock" ]; then
patch -p1 < $CWD/adNauseam-unblock.patch
@@ -165,7 +167,7 @@ find -L . \
# "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 36: ordinal not in range(128)"
export LANG=C
-export MOZCONFIG="$TMP/$SRCNAM/.mozconfig"
+export MOZCONFIG="$TMP/$SRCNAM1/.mozconfig"
export MOZILLA_OFFICIAL=1
export MOZ_MAKE_FLAGS=$MAKEFLAGS
export CFLAGS="$SLKCFLAGS"
@@ -217,7 +219,8 @@ echo "ac_add_options --disable-pulseaudio" >> .mozconfig; fi
if pkg-config --exists jack && [ "${BLACKLIST_JACK:-no}" != "yes" ]; then
echo "ac_add_options --enable-jack" >> .mozconfig; fi
-python2 mach build
+sed -i 's/.\/platform\/mach/"python2\ .\/platform\/mach"/g' mach
+./mach build
## Clean up; and package Pale Moon.
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/mozilla/plugins
@@ -256,7 +259,7 @@ cat $CWD/palemoon.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- $TMP/$SRCNAM/LEGAL $TMP/$SRCNAM/LICENSE $TMP/$SRCNAM/README.md \
+ $TMP/$SRCNAM1/platform/LEGAL $TMP/$SRCNAM1/LICENSE $TMP/$SRCNAM1/README.md $TMP/$SRCNAM1/AUTHORS \
$PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild