From 9181e9c2a66e52c461deeeec7796f49531777e9a Mon Sep 17 00:00:00 2001 From: dr460nf1r3 Date: Mon, 20 Jun 2022 20:52:56 +0200 Subject: [PATCH] Apply native messaging symlink --- .SRCINFO | 2 +- PKGBUILD | 26 +++++++++++++++----------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 91f1334dbdf..9ff564ddc8a 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = firedragon pkgdesc = Librewolf fork build using custom branding, settings & KDE patches by OpenSUSE pkgver = 101.0.1 - pkgrel = 1 + pkgrel = 2 url = https://gitlab.com/dr460nf1r3/settings/ install = firedragon.install arch = x86_64 diff --git a/PKGBUILD b/PKGBUILD index 9e58b62712a..fb29bef1558 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ pkgname=firedragon _pkgname=FireDragon pkgver=101.0.1 -pkgrel=1 +pkgrel=2 pkgdesc="Librewolf fork build using custom branding, settings & KDE patches by OpenSUSE" arch=(x86_64 x86_64_v3 aarch64) backup=('usr/lib/firedragon/firedragon.cfg' @@ -108,17 +108,15 @@ export NM=llvm-nm export RANLIB=llvm-ranlib # Branding -ac_add_options --enable-update-channel=release -ac_add_options --with-app-name=${pkgname} - -# ac_add_options --with-app-basename=${_pkgname} - -ac_add_options --with-branding=browser/branding/${pkgname} -# ac_add_options --with-distribution-id=org.garudalinux -ac_add_options --with-unsigned-addon-scopes=app,system ac_add_options --allow-addon-sideload -export MOZ_REQUIRE_SIGNING= -# export MOZ_APP_REMOTINGNAME=${pkgname//-/} +ac_add_options --enable-update-channel=release +ac_add_options --with-app-basename=${_pkgname} +ac_add_options --with-app-name=${pkgname} +ac_add_options --with-branding=browser/branding/${pkgname} +ac_add_options --with-distribution-id=org.garudalinux +ac_add_options --with-unsigned-addon-scopes=app,system +export MOZ_APP_REMOTINGNAME=${pkgname//-/} +export MOZ_REQUIRE_SIGNING=1 # System libraries ac_add_options --with-system-nspr @@ -257,6 +255,9 @@ fi # Allows hiding the password manager (from the lw pref pane) / via a pref patch -Np1 -i "${_librewolf_patches_dir}"/hide-passwordmgr.patch + # Faster multilocate + patch -Np1 -i "${_librewolf_patches_dir}"/faster-package-multi-locale.patch + # Pref pane - custom FireDragon svg patch -Np1 -i "${_patches_dir}"/custom/librewolf-pref-pane.patch patch -Np1 -i "${_patches_dir}"/custom/add_firedragon_svg.patch @@ -420,6 +421,9 @@ END ln -srfv "$pkgdir/usr/lib/libnssckbi.so" "$nssckbi" fi + # Make native messaging work + ln -s "$pkgdir/usr/lib/mozilla/native-messaging-hosts" "$pkgdir/usr/lib/firedragon/native-messaging-hosts" + # Delete unneeded things from settings repo rm "$pkgdir/usr/lib/firedragon/LICENSE.txt" rm "$pkgdir/usr/lib/firedragon/about.png"