aboutsummaryrefslogtreecommitdiff
path: root/network/PaleMoon/PaleMoon.SlackBuild
diff options
context:
space:
mode:
authorkhronosschoty <khronosschoty@utmail.net>2016-11-30 23:42:49 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-12-03 07:17:45 +0700
commitfd112df8a4cbae8bb755bbd56a5f2afeadd8e8c6 (patch)
tree95df3dc12b1ff76d36cda3597f1c9128c3e98e2b /network/PaleMoon/PaleMoon.SlackBuild
parent2d91f3cdabf96737521b75b59cebd73521dad12f (diff)
network/PaleMoon: Updated for version 27.0.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/PaleMoon/PaleMoon.SlackBuild')
-rw-r--r--network/PaleMoon/PaleMoon.SlackBuild19
1 files changed, 8 insertions, 11 deletions
diff --git a/network/PaleMoon/PaleMoon.SlackBuild b/network/PaleMoon/PaleMoon.SlackBuild
index d7823cb0f766..6d9c13486a83 100644
--- a/network/PaleMoon/PaleMoon.SlackBuild
+++ b/network/PaleMoon/PaleMoon.SlackBuild
@@ -25,7 +25,7 @@
# Modified by SlackBuilds.org
PRGNAM=PaleMoon
-VERSION=${VERSION:-26.5.0}
+VERSION=${VERSION:-27.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -78,7 +78,7 @@ if [ "${ENABLE_DEBUG:-no}" = "yes" ]; then
export CXX="g++ -B$TMP/gold"
fi
fi
-
+
set -e
# We need to use the incredibly ancient autoconf-2.13 for this :/
@@ -118,9 +118,10 @@ PATH=$TMP/autoconf-tmp/usr/bin:$PATH
# Build palemoon
cd $TMP
-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
+SRCNAM=Pale-Moon-${VERSION}_Release
+rm -rf $SRCNAM
+tar xzvf $CWD/$SRCNAM.tar.gz
+cd $SRCNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -128,13 +129,11 @@ chown -R root:root .
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Crude hack so that /usr/lib/mozilla/plugins points to
+# Crude hack so that /usr/lib/mozilla/plugins points to
# /usr/lib64/mozilla/plugins on 64 bit systems
if [ "$LIBDIRSUFFIX" = "64" ]; then
sed -i 's:/usr/lib/mozilla/plugins:/usr/lib64/mozilla/plugins:g' \
xpcom/io/nsAppFileLocationProvider.cpp
-else
- echo "Oh, we're on a 32 bit system, nothing to do here!"
fi
export MOZBUILD_STATE_PATH="$TMP/Pale-Moon-${VERSION}_Release/moz.build"
@@ -170,9 +169,6 @@ echo "mk_add_options MOZ_OBJDIR=$TMP/pmbuild" >> .mozconfig
for option in $OPTIONS; do echo "ac_add_options $option" >> .mozconfig; done
echo "ac_add_options --enable-optimize=\"$OPTIMIZE\"" >> .mozconfig
-if ! pkg-config --exists libpulse; then
-echo "ac_add_options --disable-pulseaudio" >> .mozconfig; fi
-
python2 mach build || echo "Next =>"
python2 mach build
@@ -207,6 +203,7 @@ 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