diff options
Diffstat (limited to 'network/PaleMoon/PaleMoon.SlackBuild')
-rw-r--r-- | network/PaleMoon/PaleMoon.SlackBuild | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/network/PaleMoon/PaleMoon.SlackBuild b/network/PaleMoon/PaleMoon.SlackBuild index 61c741fd5c..614a156911 100644 --- a/network/PaleMoon/PaleMoon.SlackBuild +++ b/network/PaleMoon/PaleMoon.SlackBuild @@ -25,7 +25,7 @@ # Modified by SlackBuilds.org PRGNAM=PaleMoon -VERSION=${VERSION:-27.0.2} +VERSION=${VERSION:-27.0.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -96,7 +96,7 @@ find . \ -exec chmod 644 {} \; # Build a temporary copy of autoconf-2.13 only to be used to compile -# PaleMoon, since it somewhat inexplicably requires this ancient version: +# Pale Moon, since it somewhat inexplicably requires this ancient version: rm -rf $TMP/autoconf-tmp mkdir -p $TMP/autoconf-tmp # This will be at the beginning of the $PATH, so protect against nonsense @@ -116,7 +116,7 @@ make || make -j1 make install PATH=$TMP/autoconf-tmp/usr/bin:$PATH -# Build palemoon +# 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 @@ -168,6 +168,7 @@ OPTIONS="\ --x-libraries=/usr/lib${LIBDIRSUFFIX} \ --with-default-mozilla-five-home=/usr/lib${LIBDIRSUFFIX}/palemoon-$VERSION \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man" @@ -185,23 +186,31 @@ echo "ac_add_options --disable-pulseaudio" >> .mozconfig; fi python2 mach build || echo "Next =>" python2 mach build +# Clean up; and package PaleMoon. cd $TMP/pmbuild -make package +make install DESTDIR=$PKG -cd dist - -mkdir -p $PKG/usr/bin -mkdir -p $PKG/usr/share/icons/hicolor/{16x16,32x32,48x48,128x128}/apps -mkdir -p $PKG/usr/share/applications -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX} +cd $PKG -# Install palemoon into /usr/lib${LIBDIRSUFFIX} -cp -r palemoon $PKG/usr/lib${LIBDIRSUFFIX}/palemoon-$VERSION +# We don't need these (just symlinks anyway): +rm -rf usr/lib${LIBDIRSUFFIX}/palemoon-devel-$VERSION -cd $PKG +# Avoid duplicate binaries; details: https://bugzilla.mozilla.org/show_bug.cgi?id=658850 +# Pale Moon package scripts appear to attempt this, on other 'distros'; those scripts, +# however, appear to fail on Slackware. +rm -f usr/lib${LIBDIRSUFFIX}/palemoon-$VERSION/palemoon-bin ln -s /usr/lib${LIBDIRSUFFIX}/palemoon-$VERSION/palemoon usr/bin/palemoon-$VERSION + +# Use system provided Hunspell, if desired. +if [ "${USE_SYSTEM_HUNSPELL}" = "yes" ]; then + rm -rfv usr/lib${LIBDIRSUFFIX}/palemoon-$VERSION/dictionaries + cp -vsr /usr/share/hunspell usr/lib${LIBDIRSUFFIX}/palemoon/dictionaries +fi + # Icons +mkdir -p $PKG/usr/share/icons/hicolor/{16x16,32x32,48x48,128x128}/apps +mkdir -p $PKG/usr/share/applications ln -s /usr/lib${LIBDIRSUFFIX}/palemoon-$VERSION/browser/chrome/icons/default/default16.png \ usr/share/icons/hicolor/16x16/apps/${PRGNAM}-$VERSION.png ln -s /usr/lib${LIBDIRSUFFIX}/chrome/icons/default/default32.png \ |