# Maintainer: lsf # Contributor: Jan Alexander Steffens (heftig) # Contributor: Ionut Biru # Contributor: Jakub Schmidtke pkgname=librewolf _pkgname=LibreWolf pkgver=68.0.1 pkgrel=1 pkgdesc="Community-maintained fork of Librefox: a privacy and security-focused browser" arch=(x86_64) license=(MPL GPL LGPL) url="https://LibreWolf.gitlab.io" depends=(gtk3 mozilla-common libxt startup-notification mime-types dbus-glib ffmpeg nss ttf-font libpulse) makedepends=(unzip zip diffutils python2-setuptools yasm mesa imake inetutils xorg-server-xvfb autoconf2.13 rust clang llvm jack gtk2 python nodejs python2-psutil cbindgen nasm git inkscape) 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) source=(https://archive.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.xz $pkgname.desktop $pkgname.cfg.patch "git+https://gitlab.com/${pkgname}-community/${pkgname}.git#commit=e458edc5") sha256sums=('6037f77bdab29d79ca5e3fbd1d32f6c209e09d2066189a13dc7f7491227f5568' '0471d32366c6f415f7608b438ddeb10e2f998498c389217cdd6cc52e8249996b' '3a4499cdfd71f7ec590a78055ba9363d282b447c87c29a4b250ff7730c18a8ed' 'SKIP') # # For telemetry and crash dump analysis to work correctly, we need to tell the # build system which Mercurial changeset is our source. Should not be needed # anymore once 69 is released: # https://bugzilla.mozilla.org/show_bug.cgi?id=1338099 # _repo=https://hg.mozilla.org/releases/mozilla-release # _tag=FIREFOX_${pkgver//./_}_RELEASE # # _changeset=353628fec415324ca6aa333ab6c47d447ecc128e # _changeset_tag=FIREFOX_68_0_RELEASE # # if [[ $1 == update_hgrev ]]; then # _changeset=$(hg id -r $_tag --id $_repo --template '{node}') # sed -e "/^_changeset=/s/=.*/=$_changeset/;/^_changeset_tag=/s/=.*/=$_tag/" \ # -i "${BASH_SOURCE[0]}" # exit 0 # elif [[ $_tag != $_changeset_tag ]]; then # error "Changeset needs update. Run: bash PKGBUILD update_hgrev" # exit 1 # fi prepare() { mkdir mozbuild cd firefox-$pkgver # NOTE: # unlock some prefs I deem worthy of keeping unlocked or slightly less restricted # (with librewolf installed systemwide, you'd otherwise always have to sudo around in /usr/lib) # it mainly keeps addon update / install settings / urls unlocked # as well as form fill settings # uncomment it if you are OK with a slight potential decrease in privacy, # or even better: check what I'm doing there. # cd ${srcdir}/${pkgname} # patch -Np1 -i ${srcdir}/${pkgname}.cfg.patch # cd ${srcdir}/firefox-$pkgver local ICON_FOLDER=$srcdir/$pkgname/branding/icon local BRANDING_FOLDER=$srcdir/$pkgname/browser/common/source_files/browser/branding/$pkgname # generate icons and moves them to the branding folder echo Generating icons from $ICON_FOLDER and moving to $BRANDING_FOLDER; inkscape -z -f $ICON_FOLDER/icon.svg -e $BRANDING_FOLDER/default16.png -w 16 -h 16 inkscape -z -f $ICON_FOLDER/icon.svg -e $BRANDING_FOLDER/default32.png -w 32 -h 32 inkscape -z -f $ICON_FOLDER/icon.svg -e $BRANDING_FOLDER/default48.png -w 48 -h 48 inkscape -z -f $ICON_FOLDER/icon.svg -e $BRANDING_FOLDER/default64.png -w 64 -h 64 inkscape -z -f $ICON_FOLDER/icon.svg -e $BRANDING_FOLDER/default128.png -w 128 -h 128 inkscape -z -f $ICON_FOLDER/icon.svg -e $BRANDING_FOLDER/VisualElements_70.png -w 70 -h 70 inkscape -z -f $ICON_FOLDER/icon.svg -e $BRANDING_FOLDER/VisualElements_150.png -w 150 -h 150 cat >.mozconfig <