From e81be4dfbb6eac35bdda76c963d4bf7c36f96536 Mon Sep 17 00:00:00 2001 From: ohfp <1813007-ohfp@users.noreply.gitlab.com> Date: Sun, 31 Jan 2021 11:51:25 +0100 Subject: allow building without the global menubar; remove some leftover stuff from the arch build script; adjust ids in tarball scripts as well --- PKGBUILD | 4 +- PKGBUILD_global_menubar | 324 +++++++++++++++++++++ arch/01_build.sh | 8 +- binary_tarball/scripts/3_Configure_Source_Code.sh | 6 +- binary_tarball/scripts/4_Build_Binary_Tarball.sh | 2 +- .../scripts/5_Configure_Binary_Tarball.sh | 2 +- 6 files changed, 338 insertions(+), 8 deletions(-) create mode 100644 PKGBUILD_global_menubar diff --git a/PKGBUILD b/PKGBUILD index 5f58b54..f00c7bd 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -144,7 +144,9 @@ fi patch -p1 -i ../megabar.patch # Debian patch to enable global menubar - patch -p1 -i ../unity-menubar.patch + # disabled until it's updated upstream + # also disabled for the default build, as it seems to cause issues in some configurations + # patch -p1 -i ../unity-menubar.patch # Disabling Pocket sed -i "s/'pocket'/#'pocket'/g" browser/components/moz.build diff --git a/PKGBUILD_global_menubar b/PKGBUILD_global_menubar new file mode 100644 index 0000000..f4859ca --- /dev/null +++ b/PKGBUILD_global_menubar @@ -0,0 +1,324 @@ +# Maintainer: ohfp +# Contributor: Jan Alexander Steffens (heftig) +# Contributor: Ionut Biru +# Contributor: Jakub Schmidtke + +pkgname=librewolf +_pkgname=LibreWolf +# how to get ci vars instead? +pkgver=85.0 +pkgrel=1 +pkgdesc="Community-maintained fork of Firefox, focused on privacy, security and freedom." +arch=(x86_64 aarch64) +license=(MPL GPL LGPL) +url="https://librewolf-community.gitlab.io/" +depends=(gtk3 libxt mime-types dbus-glib ffmpeg nss ttf-font libpulse) +makedepends=(unzip zip diffutils yasm mesa imake inetutils xorg-server-xvfb + rust + autoconf2.13 clang llvm jack gtk2 nodejs cbindgen nasm + python-setuptools python-psutil python-zstandard git binutils lld) +optdepends=('networkmanager: Location detection via available WiFi networks' + 'libnotify: Notification integration' + 'pulseaudio: Audio support' + 'speech-dispatcher: Text-to-Speech' + 'hunspell-en_US: Spell checking, American English') +options=(!emptydirs !makeflags !strip) +_arch_svn=https://git.archlinux.org/svntogit/packages.git/plain/trunk +_settings_commit=640b375dc02c5b089f678ed16b0232d1c0cc0721 +source_x86_64=(https://archive.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.xz + $pkgname.desktop + "git+https://gitlab.com/${pkgname}-community/browser/common.git" + "git+https://gitlab.com/${pkgname}-community/settings.git" + "megabar.patch" + "remove_addons.patch" + "unity-menubar.patch") +source_aarch64=(https://archive.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.xz + $pkgname.desktop + "git+https://gitlab.com/${pkgname}-community/browser/common.git" + "git+https://gitlab.com/${pkgname}-community/settings.git" + "megabar.patch" + "remove_addons.patch" + "unity-menubar.patch" + arm.patch + https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/extra/firefox/build-arm-libopus.patch) + +sha256sums_x86_64=('5f03712642f5e77de4581d2ba3ee3e87cfa44c3d2fdd8fe0fb56ea05a57f7b50' + '0b28ba4cc2538b7756cb38945230af52e8c4659b2006262da6f3352345a8bed2' + 'SKIP' + 'SKIP' + '682bf4bf5d79db0080aa132235a95b25745c8ef944d2a2e1fed985489d894df5' + 'f2f7403c9abd33a7470a5861e247b488693cf8d7d55c506e7e579396b7bf11e6' + '6ca4d5a50a6645ff35da0bd2e9b606172f55123ddaec3ed1f87416c18f9800ff') +sha256sums_aarch64=('5f03712642f5e77de4581d2ba3ee3e87cfa44c3d2fdd8fe0fb56ea05a57f7b50' + '0b28ba4cc2538b7756cb38945230af52e8c4659b2006262da6f3352345a8bed2' + 'SKIP' + 'SKIP' + '682bf4bf5d79db0080aa132235a95b25745c8ef944d2a2e1fed985489d894df5' + 'f2f7403c9abd33a7470a5861e247b488693cf8d7d55c506e7e579396b7bf11e6' + '6ca4d5a50a6645ff35da0bd2e9b606172f55123ddaec3ed1f87416c18f9800ff' + '6ca87d2ac7dc48e6f595ca49ac8151936afced30d268a831c6a064b52037f6b7' + '2d4d91f7e35d0860225084e37ec320ca6cae669f6c9c8fe7735cdbd542e3a7c9') + +prepare() { + mkdir mozbuild + cd firefox-$pkgver + + cat >../mozconfig <>../mozconfig <>../mozconfig <.mozconfig ../mozconfig - <.mozconfig ../mozconfig - <.mozconfig ../mozconfig - <.mozconfig ../mozconfig - <