# Maintainer: dr460nf1r3 # Contributor: Vladislav Nepogodin (vnepogodin) # Contributor: Kyle De'Vir (QuartzDragon) # Contributor: Jonas Heinrich # Contributor: Maxwell Anselm # Contributor: Jan Alexander Steffens (heftig) # Contributor: Ionut Biru # Contributor: Jakub Schmidtke pkgname=firedragon-hg _pkgname=FireDragon __pkgname=firedragon pkgver=97.0a1.r673767 pkgrel=1 pkgdesc="Librewolf fork build using Nightly sources with custom branding, Proton UI rework & Fission enabled." arch=(x86_64 x86_64_v3 aarch64) backup=('usr/lib/firedragon/firedragon.cfg' 'usr/lib/firedragon/distribution/policies.json') license=(MPL GPL LGPL) provides=(firedragon) url="https://gitlab.com/dr460nf1r3/settings/" depends=(gtk3 libxt mime-types dbus-glib ffmpeg nss-hg nspr-hg ttf-font libpulse libwebp libvpx libjpeg zlib icu libevent pipewire aom harfbuzz graphite dav1d xorg-server-xwayland) makedepends=(unzip zip diffutils yasm mesa imake inetutils xorg-server-xvfb nasm rust ccache autoconf2.13 clang llvm jack gtk2 nodejs cbindgen wasi-sdk-git python-setuptools python-psutil python-zstandard git binutils lld dump_syms) optdepends=('firejail-git: Sandboxing the browser using the included profiles' 'profile-sync-daemon: Load the browser profile into RAM' 'whoogle: Searching the web using a locally running Whoogle instance' 'searx: Searching the web using a locally running searX instance' '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' 'libappindicator-gtk3: Global menu support for GTK apps' 'appmenu-gtk-module-git: Appmenu for GTK only' 'plasma5-applets-window-appmenu: Appmenu for Plasma only') options=(!emptydirs !makeflags !strip) _repo=https://hg.mozilla.org/mozilla-unified install=$__pkgname.install source=("hg+$_repo#revision=autoland" $__pkgname.desktop "git+https://gitlab.com/vnepogodin/librewolf-common.git" "git+https://gitlab.com/dr460nf1r3/common.git" "git+https://gitlab.com/dr460nf1r3/settings.git") sha512sums=('SKIP' '1688d8696f0a4451bc1211707362ca79d302ae0e8153be8326392b5617cb3944344e9d8fe17d0b1d5fe7df6d38fd44d4d33e3eb84e7b8763c37aeab4b2c26290' 'SKIP' 'SKIP' 'SKIP') pkgver() { cd mozilla-unified _pkgver=$(cat browser/config/version.txt) printf "${_pkgver}.r%s.%s" "$(hg identify -n)" "$(hg identify -i)" | sed 's/\+//g' } prepare() { if [[ ! -d mozbuild ]];then mkdir mozbuild fi cd mozilla-unified local _patches_dir="${srcdir}/librewolf-common/patches" local __patches_dir="${srcdir}/common/patches-hg" # Gentoo patches echo "---- Gentoo patches" patch -Np1 -i ${__patches_dir}/gentoo/0021-bmo-1516081-Disable-watchdog-during-PGO-builds.patch patch -Np1 -i ${__patches_dir}/gentoo/0029-LTO-Only-enable-LTO-for-Rust-when-complete-build-use.patch # Use more system libs echo "---- Patching for system libs" patch -Np1 -i ${__patches_dir}/gentoo/0004-bmo-847568-Support-system-harfbuzz.patch patch -Np1 -i ${__patches_dir}/gentoo/0005-bmo-847568-Support-system-graphite2.patch patch -Np1 -i ${__patches_dir}/gentoo/0006-bmo-1559213-Support-system-av1.patch # Remove some pre-installed addons that might be questionable patch -Np1 -i ${_patches_dir}/remove_addons.patch # Disabling Pocket patch -Np1 -i ${_patches_dir}/sed-patches/disable-pocket.patch # Remove mozilla vpn ads patch -Np1 -i ${_patches_dir}/mozilla-vpn-ad.patch # Remove Internal Plugin Certificates patch -Np1 -i ${_patches_dir}/sed-patches/remove-internal-plugin-certs.patch # Allow SearchEngines option in non-ESR builds patch -Np1 -i ${_patches_dir}/sed-patches/allow-searchengines-non-esr.patch # Stop some undesired requests (https://gitlab.com/librewolf-community/browser/common/-/issues/10) patch -Np1 -i ${_patches_dir}/sed-patches/stop-undesired-requests.patch # Assorted patches patch -Np1 -i ${_patches_dir}/context-menu.patch patch -Np1 -i ${_patches_dir}/browser-confvars.patch patch -Np1 -i ${_patches_dir}/urlbarprovider-interventions.patch # Allow overriding the color scheme light/dark preference with RFP patch -Np1 -i ${_patches_dir}/allow_dark_preference_with_rfp.patch # Fix an URL in 'about' dialog patch -Np1 -i ${_patches_dir}/about-dialog.patch # Change some hardcoded directory strings that could lead to unnecessarily # created directories # patch -Np1 -i ${_patches_dir}/mozilla_dirs.patch cat >../mozconfig <>../mozconfig <>../mozconfig <.mozconfig ../mozconfig - <.mozconfig ../mozconfig - <.mozconfig ../mozconfig - <.mozconfig ../mozconfig - <