Apply native messaging symlink

This commit is contained in:
dr460nf1r3 2022-06-20 20:52:56 +02:00
parent dacbd9ecdc
commit 9181e9c2a6
No known key found for this signature in database
GPG key ID: B5C20B53B5FB19ED
2 changed files with 16 additions and 12 deletions

View file

@ -1,7 +1,7 @@
pkgbase = firedragon pkgbase = firedragon
pkgdesc = Librewolf fork build using custom branding, settings & KDE patches by OpenSUSE pkgdesc = Librewolf fork build using custom branding, settings & KDE patches by OpenSUSE
pkgver = 101.0.1 pkgver = 101.0.1
pkgrel = 1 pkgrel = 2
url = https://gitlab.com/dr460nf1r3/settings/ url = https://gitlab.com/dr460nf1r3/settings/
install = firedragon.install install = firedragon.install
arch = x86_64 arch = x86_64

View file

@ -5,7 +5,7 @@
pkgname=firedragon pkgname=firedragon
_pkgname=FireDragon _pkgname=FireDragon
pkgver=101.0.1 pkgver=101.0.1
pkgrel=1 pkgrel=2
pkgdesc="Librewolf fork build using custom branding, settings & KDE patches by OpenSUSE" pkgdesc="Librewolf fork build using custom branding, settings & KDE patches by OpenSUSE"
arch=(x86_64 x86_64_v3 aarch64) arch=(x86_64 x86_64_v3 aarch64)
backup=('usr/lib/firedragon/firedragon.cfg' backup=('usr/lib/firedragon/firedragon.cfg'
@ -108,17 +108,15 @@ export NM=llvm-nm
export RANLIB=llvm-ranlib export RANLIB=llvm-ranlib
# Branding # 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 ac_add_options --allow-addon-sideload
export MOZ_REQUIRE_SIGNING= ac_add_options --enable-update-channel=release
# export MOZ_APP_REMOTINGNAME=${pkgname//-/} 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 # System libraries
ac_add_options --with-system-nspr ac_add_options --with-system-nspr
@ -257,6 +255,9 @@ fi
# Allows hiding the password manager (from the lw pref pane) / via a pref # Allows hiding the password manager (from the lw pref pane) / via a pref
patch -Np1 -i "${_librewolf_patches_dir}"/hide-passwordmgr.patch 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 # Pref pane - custom FireDragon svg
patch -Np1 -i "${_patches_dir}"/custom/librewolf-pref-pane.patch patch -Np1 -i "${_patches_dir}"/custom/librewolf-pref-pane.patch
patch -Np1 -i "${_patches_dir}"/custom/add_firedragon_svg.patch patch -Np1 -i "${_patches_dir}"/custom/add_firedragon_svg.patch
@ -420,6 +421,9 @@ END
ln -srfv "$pkgdir/usr/lib/libnssckbi.so" "$nssckbi" ln -srfv "$pkgdir/usr/lib/libnssckbi.so" "$nssckbi"
fi 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 # Delete unneeded things from settings repo
rm "$pkgdir/usr/lib/firedragon/LICENSE.txt" rm "$pkgdir/usr/lib/firedragon/LICENSE.txt"
rm "$pkgdir/usr/lib/firedragon/about.png" rm "$pkgdir/usr/lib/firedragon/about.png"