summaryrefslogtreecommitdiff
path: root/network/palemoon/palemoon.SlackBuild
diff options
context:
space:
mode:
authorskaendo <skaendo@excite.com>2017-04-16 23:07:17 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-17 07:45:35 +0700
commitb085bf1300ec4d0f45bc50e335113ff75cc7d290 (patch)
treebe8d5c3a5de31798eed5c9b84651c8e5f9009ecd /network/palemoon/palemoon.SlackBuild
parent03d50eab090db95c88000986dc3ec26683318a1d (diff)
downloadslackbuilds-b085bf1300ec4d0f45bc50e335113ff75cc7d290.tar.gz
network/palemoon: Updated for version 27.2.1 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/palemoon/palemoon.SlackBuild')
-rw-r--r--network/palemoon/palemoon.SlackBuild33
1 files changed, 19 insertions, 14 deletions
diff --git a/network/palemoon/palemoon.SlackBuild b/network/palemoon/palemoon.SlackBuild
index 3ae195dabc..18c8e28c87 100644
--- a/network/palemoon/palemoon.SlackBuild
+++ b/network/palemoon/palemoon.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for palemoon
# Copyright 2015 pomfland
+# Copyright 2017 skaendo <skaendo at excite dot com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=palemoon
-VERSION=${VERSION:-25.8.1}
+VERSION=${VERSION:-27.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,15 +41,15 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# we don't need cflags since nothing is being compiled here.
-# we do need to check the architecture though and abort when it's not
+# We don't need cflags since nothing is being compiled here.
+# We do need to check the architecture though and abort when it's not
# supported.
if [ ! "$ARCH" = "i686" ] && [ ! "$ARCH" = "x86_64" ]; then
echo "Sorry, binary packages are available only for i686 and x86_64. Aborting."
exit 1
fi
-# check for sse2 flag and abort if not found
+# Check for sse2 flag and abort if not found
[[ $(cat /proc/cpuinfo|grep sse2) ]] || {
echo "No required SSE2 support detected. Aborting."
exit 1; }
@@ -67,31 +68,35 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# use system hunspell if user wants it
+# Use system hunspell if user wants it
if [[ $USE_SYSTEM_SPELLCHECK == "yes" ]]; then
rm -rf palemoon/dictionaries
ln -sv /usr/share/hunspell palemoon/dictionaries
fi
-# create directories
+# Create directories
mkdir -p $PKG/opt
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/share/icons/hicolor/{16x16,32x32,48x48,128x128}/apps
mkdir -p $PKG/usr/share/applications
-# install pale moon into /opt
+# Install pale moon into /opt
cp -vr palemoon $PKG/opt
-# link stuff
+# Link stuff
## binary
ln -s /opt/palemoon/palemoon $PKG/usr/bin/palemoon
## icons
-ln -s /opt/palemoon/browser/chrome/icons/default/default16.png $PKG/usr/share/icons/hicolor/16x16/apps/palemoon.png
-ln -s /opt/palemoon/browser/chrome/icons/default/default32.png $PKG/usr/share/icons/hicolor/32x32/apps/palemoon.png
-ln -s /opt/palemoon/browser/chrome/icons/default/default48.png $PKG/usr/share/icons/hicolor/48x48/apps/palemoon.png
-ln -s /opt/palemoon/browser/icons/mozicon128.png $PKG/usr/share/icons/hicolor/128x128/apps/palemoon.png
-
-# install .desktop file
+ln -s /opt/palemoon/browser/chrome/icons/default/default16.png \
+ $PKG/usr/share/icons/hicolor/16x16/apps/palemoon.png
+ln -s /opt/palemoon/browser/chrome/icons/default/default32.png \
+ $PKG/usr/share/icons/hicolor/32x32/apps/palemoon.png
+ln -s /opt/palemoon/browser/chrome/icons/default/default48.png \
+ $PKG/usr/share/icons/hicolor/48x48/apps/palemoon.png
+ln -s /opt/palemoon/browser/icons/mozicon128.png \
+ $PKG/usr/share/icons/hicolor/128x128/apps/palemoon.png
+
+# Install .desktop file
cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \