Port changes from firefox-nightly
- Id
- adca6bcbbb41db2c6f070c30340cdb91de75f7b8
- Author
- Jan Alexander Steffens (heftig)
- Commit time
- 2024-05-26T20:27:17+02:00
Modified .SRCINFO
makedepends = xorg-server-xvfb
makedepends = yasm
makedepends = zip
+ depends = alsa-lib
+ depends = at-spi2-core
+ depends = bash
+ depends = cairo
depends = dbus
depends = ffmpeg
+ depends = fontconfig
+ depends = freetype2
+ depends = gcc-libs
+ depends = gdk-pixbuf2
+ depends = glib2
+ depends = glibc
depends = gtk3
+ depends = hicolor-icon-theme
depends = libpulse
+ depends = libx11
+ depends = libxcb
+ depends = libxcomposite
+ depends = libxdamage
+ depends = libxext
+ depends = libxfixes
+ depends = libxrandr
depends = libxss
depends = libxt
depends = mime-types
+ depends = nspr
depends = nss
+ depends = pango
depends = ttf-font
optdepends = hunspell-en_US: Spell checking, American English
optdepends = libnotify: Notification integration
optdepends = networkmanager: Location detection via available WiFi networks
- optdepends = pulseaudio: Audio support
optdepends = speech-dispatcher: Text-to-Speech
optdepends = xdg-desktop-portal: Screensharing with Wayland
options = !emptydirs
Modified PKGBUILD
arch=(x86_64)
license=(MPL-2.0)
depends=(
+ alsa-lib
+ at-spi2-core
+ bash
+ cairo
dbus
ffmpeg
+ fontconfig
+ freetype2
+ gcc-libs
+ gdk-pixbuf2
+ glib2
+ glibc
gtk3
+ hicolor-icon-theme
libpulse
+ libx11
+ libxcb
+ libxcomposite
+ libxdamage
+ libxext
+ libxfixes
+ libxrandr
libxss
libxt
mime-types
+ nspr
nss
+ pango
ttf-font
)
makedepends=(
'hunspell-en_US: Spell checking, American English'
'libnotify: Notification integration'
'networkmanager: Location detection via available WiFi networks'
- 'pulseaudio: Audio support'
'speech-dispatcher: Text-to-Speech'
'xdg-desktop-portal: Screensharing with Wayland'
)
ac_add_options --with-unsigned-addon-scopes=app,system
ac_add_options --allow-addon-sideload
export MOZILLA_OFFICIAL=1
-export MOZ_APP_REMOTINGNAME=${pkgname//-/}
+export MOZ_APP_REMOTINGNAME=$pkgname
# Keys
ac_add_options --with-google-location-service-api-keyfile=${PWD@Q}/google-api-key
CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
+ # Breaks compilation since https://bugzilla.mozilla.org/show_bug.cgi?id=1896066
+ CFLAGS="${CFLAGS/-fexceptions/}"
+ CXXFLAGS="${CXXFLAGS/-fexceptions/}"
+
# LTO needs more open files
ulimit -n 4096
cat >.mozconfig ../mozconfig - <<END
ac_add_options --enable-profile-generate=cross
END
- ./mach build
+ ./mach build --priority normal
echo "Profiling instrumented browser..."
./mach package
test -s jarlog
echo "Removing instrumented browser..."
- ./mach clobber
+ ./mach clobber objdir
echo "Building optimized browser..."
cat >.mozconfig ../mozconfig - <<END
ac_add_options --with-pgo-profile-path=${PWD@Q}/merged.profdata
ac_add_options --with-pgo-jarlog=${PWD@Q}/jarlog
END
- ./mach build
+ ./mach build --priority normal
}
package() {
"$pkgdir/usr/share/icons/hicolor/symbolic/apps/$pkgname-symbolic.svg"
install -Dvm644 ../$pkgname.desktop \
- "$pkgdir/usr/share/applications/${pkgname//-/}.desktop"
+ "$pkgdir/usr/share/applications/$pkgname.desktop"
# Install a wrapper to avoid confusion about binary path
install -Dvm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" <<END
local sprovider="$pkgdir/usr/share/gnome-shell/search-providers/$pkgname.search-provider.ini"
install -Dvm644 /dev/stdin "$sprovider" <<END
[Shell Search Provider]
-DesktopId=${pkgname//-/}.desktop
-BusName=org.mozilla.${pkgname//-/}.SearchProvider
-ObjectPath=/org/mozilla/${pkgname//-/}/SearchProvider
+DesktopId=$pkgname.desktop
+BusName=org.mozilla.${pkgname//-/_}.SearchProvider
+ObjectPath=/org/mozilla/${pkgname//-/_}/SearchProvider
Version=2
END
}