diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2018-12-20 09:51:55 -0800 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2018-12-20 09:51:55 -0800 |
commit | f5c31c2dc927e844f8cc78e5daceb2ea2f433e5a (patch) | |
tree | bcad9efbe1e8c6630669325dc093e5618f1076e1 /PKGBUILD | |
parent | Use python3 makedepends | Clean up whitespace in vendor.js (diff) | |
download | firefox-f5c31c2dc927e844f8cc78e5daceb2ea2f433e5a.tar.xz |
Removed some telemetry | Disabled debug symbols | Disabled webspeech components
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 27 insertions, 9 deletions
@@ -7,15 +7,15 @@ # # I maintain this because: # Arch version uses git # Arch version requires signed addons -# Arch version doesn't remove system addons # Arch version lacks privacy and security by default # Arch version doesn't support alsa +# Arch version enables debug symbols # Arch version makepdepends on python2 pkgname=firefox pkgver=64.0 bz2ver=$(echo $pkgver | sed 's/\./_/g') -pkgrel=1 +pkgrel=2 pkgdesc="Standalone web browser from mozilla.org" arch=(x86_64) license=(MPL GPL LGPL) @@ -32,14 +32,18 @@ optdepends=('networkmanager: Location detection via available WiFi networks' options=(!emptydirs !makeflags) source=(firefox-$pkgver.tar.bz2::https://hg.mozilla.org/releases/mozilla-release/archive/FIREFOX_${bz2ver}_RELEASE.tar.bz2 $pkgname.desktop firefox-symbolic.svg - vendor.js) + vendor.js + moz.configure.diff + package-manifest.diff) sha256sums=('5f249e8edcced5531b86a330bf90938bfe414d21a03c25a035b52aeab987870c' '677e1bde4c6b3cff114345c211805c7c43085038ca0505718a11e96432e9811a' '9a1a572dc88014882d54ba2d3079a1cf5b28fa03c5976ed2cb763c93dabbd797' - '3b71a4ae3a1b4a598d5d4f82f83d2941277c8f59064231ffc1dff61415763d6f') + '276c70d2fd6b02eb256eb935dfea3514beafda3f63a28db8aaed62bf7dffeb2d' + 'ad8a270e1b2affb098440f82517c3952207b28ebf604fef695dad3e29a5ba30e' + '02f9b14dc547fa059112e693aece6d6f416708d8f00f1b1d825b8f0692ac72a3') prepare() { - mkdir mozbuild +# mkdir mozbuild cd mozilla-release-FIREFOX_${bz2ver}_RELEASE cat >$srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/.mozconfig <<END @@ -62,10 +66,8 @@ export RANLIB=llvm-ranlib ac_add_options --enable-official-branding ac_add_options --enable-update-channel=release ac_add_options --with-distribution-id=org.artixlinux -export MOZ_TELEMETRY_REPORTING=0 export MOZ_ADDON_SIGNING=0 export MOZ_REQUIRE_SIGNING=0 -export MOZ_DATA_REPORTING=0 # System libraries ac_add_options --enable-system-ffi @@ -83,18 +85,27 @@ ac_add_options --enable-alsa ac_add_options --disable-pulseaudio ac_add_options --enable-startup-notification ac_add_options --disable-crashreporter +ac_add_options --disable-debug-symbols ac_add_options --disable-eme ac_add_options --disable-gconf ac_add_options --disable-tests ac_add_options --disable-updater +ac_add_options --disable-webspeech +ac_add_options --disable-webspeechtestbackend ac_add_options --disable-webrtc mk_add_options MOZ_MAKE_FLAGS="-j4" END + cat >$srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/build/mozconfig.common.override <<END +export MOZ_TELEMETRY_REPORTING=0 +export MOZ_DATA_REPORTING=0 + +END + # Disable various components at the source level -# sed -i 's|[;]1|;0|' $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/toolkit/components/telemetry/TelemetryStartup.manifest + sed -i 's|[;]1|;0|' $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/toolkit/components/telemetry/TelemetryStartup.manifest # sed -i 's|[;]1|;0|' $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/browser/experiments/Experiments.manifest # sed -i '/pocket/d' $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/browser/extensions/moz.build # sed -i '/activity-stream/d' $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/browser/extensions/moz.build @@ -104,6 +115,13 @@ END # sed -i '/onboarding/d' $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/browser/extensions/moz.build # sed -i '/screenshots/d' $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/browser/extensions/moz.build # sed -i '/webcompat/d' $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/browser/extensions/moz.build +# sed -i '/webcompat-reporter/d' $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/browser/extensions/moz.build + +# patch -p0 $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/browser/config/mozconfigs/whitelist $srcdir/whitelist.diff +# patch -p0 $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/browser/config/mozconfigs/linux64/common-opt $srcdir/common-opt.diff + patch -p0 $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/browser/moz.configure $srcdir/moz.configure.diff + patch -p0 $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/browser/installer/package-manifest.in $srcdir/package-manifest.diff +# patch -p0 $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/build/mozconfig.common.override $srcdir/mozconfig.common.override.diff } @@ -112,6 +130,7 @@ build() { cd mozilla-release-FIREFOX_${bz2ver}_RELEASE # mkdir --parents $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/obj-x86_64-pc-linux-gnu/dist/bin/browser/features # mkdir --parents $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/extensions/webcompat-reporter/locales +# mkdir --parents $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/obj-x86_64-pc-linux-gnu/services/sync/locales # export MOZ_SOURCE_REPO="$_repo" export MOZ_NOSPAM=1 @@ -119,7 +138,6 @@ build() { # LTO needs more open files ulimit -n 4096 -# patch -p0 $srcdir/mozilla-release-FIREFOX_${bz2ver}_RELEASE/browser/installer/package-manifest.in $srcdir/package-manifest.diff ./mach build ./mach buildsymbols } |