diff options
author | khronosschoty <khronosschoty@utmail.net> | 2016-12-06 11:18:53 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-12-06 11:19:22 +0700 |
commit | 0d874d8e7a635d92971361976e43d24619b19df2 (patch) | |
tree | 8571b82d6a6b2cf6f3105419af1576280e25a5ed /network/PaleMoon/PaleMoon.SlackBuild | |
parent | ab7921c927cab85e2a4ebf3bdda612679ae2ebe0 (diff) | |
download | slackbuilds-0d874d8e7a635d92971361976e43d24619b19df2.tar.gz |
network/PaleMoon: Update script and README.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/PaleMoon/PaleMoon.SlackBuild')
-rw-r--r-- | network/PaleMoon/PaleMoon.SlackBuild | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/network/PaleMoon/PaleMoon.SlackBuild b/network/PaleMoon/PaleMoon.SlackBuild index 4a76d4258e..51b97bc529 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 |