From c5136714b33c0396b5157b154c645443e9f8a8e8 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Fri, 10 Feb 2017 23:55:29 +0100 Subject: [PATCH] Add palemoon --- .../extrafiles/Pale-Moon/palemoon.desktop | 14 +++ satellites/palemoon-decentraleyes.sat | 15 +++ satellites/palemoon-pentadactyl.sat | 14 +++ satellites/palemoon-ublock.sat | 20 ++++ satellites/palemoon-umatrix.sat | 25 +++++ satellites/palemoon.sat | 102 ++++++++++++++++++ 6 files changed, 190 insertions(+) create mode 100644 satellites/extrafiles/Pale-Moon/palemoon.desktop create mode 100644 satellites/palemoon-decentraleyes.sat create mode 100644 satellites/palemoon-pentadactyl.sat create mode 100644 satellites/palemoon-ublock.sat create mode 100644 satellites/palemoon-umatrix.sat create mode 100644 satellites/palemoon.sat diff --git a/satellites/extrafiles/Pale-Moon/palemoon.desktop b/satellites/extrafiles/Pale-Moon/palemoon.desktop new file mode 100644 index 0000000..bc24408 --- /dev/null +++ b/satellites/extrafiles/Pale-Moon/palemoon.desktop @@ -0,0 +1,14 @@ +# Source: http://linux.palemoon.org/help/installation/ +[Desktop Entry] +Version=1.0 +Name=Pale Moon Web Browser +Comment=Browse the World Wide Web +Keywords=Internet;WWW;Browser;Web;Explorer +Exec=palemoon %u +Terminal=false +X-MultipleArgs=false +Type=Application +Icon=palemoon +Categories=Network;WebBrowser;Internet +MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall; +StartupNotify=true diff --git a/satellites/palemoon-decentraleyes.sat b/satellites/palemoon-decentraleyes.sat new file mode 100644 index 0000000..a762a19 --- /dev/null +++ b/satellites/palemoon-decentraleyes.sat @@ -0,0 +1,15 @@ +# TODO: Build jetpack plugin (requires jpm) + +name=decentraleyes +version=1.3.7 +palemoon_version=27.1.0 +update_url="https://github.com/Synzvato/$name/releases" +update_names="/archive/v$version.tar.gz" + +dlfile "https://github.com/Synzvato/$name/releases/download/v$version/Decentraleyes.v$version-palemoon-unsigned.xpi" \ + '525ef066830acec9b3229ae8fc34a55b' +header_end + +install -Dm644 "Decentraleyes.v$version-palemoon-unsigned.xpi" "$dir_install/$dir_prefix/$dir_libdir/palemoon-$palemoon_version/browser/extensions/jid1-BoFifL9Vbdl2zQ@jetpack.xpi" + +# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: diff --git a/satellites/palemoon-pentadactyl.sat b/satellites/palemoon-pentadactyl.sat new file mode 100644 index 0000000..8495fb5 --- /dev/null +++ b/satellites/palemoon-pentadactyl.sat @@ -0,0 +1,14 @@ +name=pentadactyl +version=1.2pre-pm-3 +palemoon_version=27.1.0 +update_url="https://github.com/madand/$name-pm/releases" + +dlextract "https://github.com/madand/$name-pm/archive/$name-$version.tar.gz" \ + '9ffbd57120c5dd2b5b84208f5d6a0571' +header_end + +cd "$name-pm-$name-$version" +make pentadactyl.xpi +install -Dm644 "downloads/$name-$version.xpi" "$dir_install/$dir_prefix/$dir_libdir/palemoon-$palemoon_version/browser/extensions/pentadactyl@addons.palemoon.org.xpi" + +# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: diff --git a/satellites/palemoon-ublock.sat b/satellites/palemoon-ublock.sat new file mode 100644 index 0000000..0730359 --- /dev/null +++ b/satellites/palemoon-ublock.sat @@ -0,0 +1,20 @@ +import 'vcs/git' + +name=uBlock +version=1.11.0 +palemoon_version=27.1.0 +update_url="https://github.com/gorhill/$name/releases" +update_names="/archive/$version.tar.gz" + +dlextract "https://github.com/gorhill/$name/archive/$version/$name-$version.tar.gz" \ + '482cc613ae9ffc1f389b02daf5eed7f1' +( name=uAssets + vcs_git -V "https://github.com/uBlockOrigin/uAssets" +) +header_end + +cd "$name-$version" +tools/make-firefox.sh all +install -Dm644 "dist/build/${name}0.firefox.xpi" "$dir_install/$dir_prefix/$dir_libdir/palemoon-$palemoon_version/browser/extensions/${name}0@raymondhill.net.xpi" + +# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: diff --git a/satellites/palemoon-umatrix.sat b/satellites/palemoon-umatrix.sat new file mode 100644 index 0000000..42738f0 --- /dev/null +++ b/satellites/palemoon-umatrix.sat @@ -0,0 +1,25 @@ +import 'vcs/git' + +name=uMatrix +version=0.9.3.6 +palemoon_version=27.1.0 +update_url="https://github.com/gorhill/$name/releases" +update_names="/archive/$version.tar.gz" + +dlextract "https://github.com/gorhill/$name/archive/$version/$name-$version.tar.gz" \ + '89ddec9396e158d4d3eea0b167b880e8' +( name=uAssets + vcs_git -V "https://github.com/uBlockOrigin/uAssets" +) +header_end + +cd "$name-$version" + +# Update the assets, as that's something not done in uMatrix for some reason +rm -f assets/checksums.txt +cp -a ../uAssets/thirdparties assets + +tools/make-firefox.sh all +install -Dm644 "dist/build/$name.firefox.xpi" "$dir_install/$dir_prefix/$dir_libdir/palemoon-$palemoon_version/browser/extensions/$name@raymondhill.net.xpi" + +# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: diff --git a/satellites/palemoon.sat b/satellites/palemoon.sat new file mode 100644 index 0000000..68e2a84 --- /dev/null +++ b/satellites/palemoon.sat @@ -0,0 +1,102 @@ +name=Pale-Moon +version=27.1.0 +update_url="https://github.com/MoonchildProductions/$name/releases" +update_names="/archive/${version}_Release.tar.gz" + +define_option 'pulseaudio: Build with support for PulseAudio' + +dlextract "https://github.com/MoonchildProductions/$name/archive/${version}_Release/$name-${version}_Release.tar.gz" \ + 'a1dc6f6ad97acf544504d60cfae25d4e' +dlextract 'http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz' \ + '9de56d4a161a723228220b0f425dc711' +extrafile 'palemoon.desktop' +header_end + +unset CFLAGS +unset CXXFLAGS + +( cd 'autoconf-2.13' + ./configure --prefix="$PWD/install" --program-suffix=-2.13 + make + make install +) + +cd "$name-${version}_Release" + +cat > .mozconfig << EOF +# Please see https://www.palemoon.org/redist.shtml for restrictions when using the official branding. +#ac_add_options --enable-official-branding +#export MOZILLA_OFFICIAL=1 + +mk_add_options MOZ_CO_PROJECT=browser +ac_add_options --enable-application=browser + +mk_add_options MOZ_OBJDIR="$PWD/pmbuild/" + +ac_add_options --enable-optimize="-O2 -msse2 -mfpmath=sse" +ac_add_options --with-pthreads + +ac_add_options --disable-installer +ac_add_options --disable-updater + +ac_add_options --enable-release +ac_add_options --enable-devtools +ac_add_options --enable-jemalloc +ac_add_options --enable-shared-js + +ac_add_options --enable-strip + +ac_add_options --x-libraries="/$dir_prefix/$dir_libdir" + +# The section before this is kept up to date with https://developer.palemoon.org/Developer_Guide:Build_Instructions/Pale_Moon/Linux#head:Mozconfig_Files (with minor changes) +# The following section are my additions. + +# Proper paths +ac_add_options --prefix="/$dir_prefix" +ac_add_options --bindir="/$dir_prefix/$dir_bindir" +ac_add_options --libdir="/$dir_prefix/$dir_libdir" +ac_add_options --includedir="/$dir_prefix/$dir_includedir" +ac_add_options --datadir="/$dir_prefix/$dir_datadir" + +# Use system libraries (./configure --help | grep system) +ac_add_options --with-system-nspr +ac_add_options --with-system-libevent +#ac_add_options --with-system-nss - Apparently unsupported +ac_add_options --with-system-jpeg +ac_add_options --with-system-zlib +ac_add_options --with-system-bz2 +ac_add_options --with-system-webp +#ac_add_options --with-system-png - The APNG patch is not upstrean +ac_add_options --enable-system-hunspell +ac_add_options --enable-system-ffi +ac_add_options --with-system-libvpx +ac_add_options --enable-system-sqlite +ac_add_options --enable-system-cairo +ac_add_options --enable-system-pixman +ac_add_options --with-system-icu + +# Make pulseaudio support optional +$(option pulseaudio && echo ac_add_options --enable-pulseaudio || echo ac_add_options --disable-pulseaudio) +EOF + +PATH="../autoconf-2.13/install/bin:$PATH" make -f client.mk build + +cd pmbuild +make DESTDIR="$dir_install" install + +cd ../.. + +# Install icons +for x in 16 32 48; do + mkdir -p "$dir_install/$dir_prefix/$dir_datadir/icons/hicolor/${x}x$x/apps" + ln -s "/$dir_prefix/$dir_libdir/palemoon-$version/browser/chrome/icons/default/default$x.png" \ + "$dir_install/$dir_prefix/$dir_datadir/icons/hicolor/${x}x$x/apps/palemoon.png" +done +mkdir -p "$dir_install/$dir_prefix/$dir_datadir/icons/hicolor/128x128/apps" +ln -s "/$dir_prefix/$dir_libdir/palemoon-$version/browser/icons/mozicon128.png" \ + "$dir_install/$dir_prefix/$dir_datadir/icons/hicolor/128x128/apps/palemoon.png" + +# Install desktop +install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/applications" palemoon.desktop + +# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: