Update to latest Linux patches

This commit is contained in:
Bert van der Weerd 2021-03-22 21:07:37 +01:00
parent 4411d83bd5
commit d6a50d6c4a
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1
2 changed files with 25 additions and 2 deletions

2
.gitignore vendored
View file

@ -3,6 +3,8 @@ librewolf-*
megabar.patch
remove_addons.patch
unity-menubar.patch
context-menu.patch
mozilla-vpn-ad.patch
mozconfig
Makefile
librewolf

View file

@ -76,13 +76,26 @@ do_patches() {
# get the patches
echo 'Getting patches..'
rm -f megabar.patch remove_addons.patch
rm -f context-menu.patch megabar.patch mozilla-vpn-ad.patch remove_addons.patch unity-menubar.patch
wget -q https://gitlab.com/librewolf-community/browser/linux/-/raw/master/context-menu.patch
if [ $? -ne 0 ]; then exit 1; fi
if [ ! -f context-menu.patch ]; then exit 1; fi
wget -q https://gitlab.com/librewolf-community/browser/linux/-/raw/master/megabar.patch
if [ $? -ne 0 ]; then exit 1; fi
if [ ! -f megabar.patch ]; then exit 1; fi
wget -q https://gitlab.com/librewolf-community/browser/linux/-/raw/master/mozilla-vpn-ad.patch
if [ $? -ne 0 ]; then exit 1; fi
if [ ! -f mozilla-vpn-ad.patch ]; then exit 1; fi
wget -q https://gitlab.com/librewolf-community/browser/linux/-/raw/master/remove_addons.patch
if [ $? -ne 0 ]; then exit 1; fi
if [ ! -f remove_addons.patch ]; then exit 1; fi
wget -q https://gitlab.com/librewolf-community/browser/linux/-/raw/master/unity-menubar.patch
if [ $? -ne 0 ]; then exit 1; fi
if [ ! -f unity-menubar.patch ]; then exit 1; fi
# create mozconfig..
if [ ! -d firefox-$pkgver ]; then exit 1; fi
cd firefox-$pkgver
@ -127,10 +140,18 @@ END
echo 'Applying patches...'
# Apply patches..
patch -p1 -i ../remove_addons.patch
# context-menu.patch megabar.patch mozilla-vpn-ad.patch remove_addons.patch unity-menubar.patch
patch -p1 -i ../context-menu.patch
if [ $? -ne 0 ]; then exit 1; fi
patch -p1 -i ../megabar.patch
if [ $? -ne 0 ]; then exit 1; fi
patch -p1 -i ../mozilla-vpn-ad.patch
if [ $? -ne 0 ]; then exit 1; fi
patch -p1 -i ../remove_addons.patch
if [ $? -ne 0 ]; then exit 1; fi
patch -p1 -i ../unity-menubar.patch
if [ $? -ne 0 ]; then exit 1; fi
# Disabling Pocket
sed -i "s/'pocket'/#'pocket'/g" browser/components/moz.build