diff --git a/.gitignore b/.gitignore index 3682cf7..b0d1d49 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ librewolf-* megabar.patch remove_addons.patch unity-menubar.patch +context-menu.patch +mozilla-vpn-ad.patch mozconfig Makefile librewolf diff --git a/build.sh b/build.sh index 6a6682f..637cbde 100755 --- a/build.sh +++ b/build.sh @@ -76,14 +76,27 @@ 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,11 +140,19 @@ 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 if [ $? -ne 0 ]; then exit 1; fi