diff --git a/build.sh b/build.sh index 435d113..b81d342 100755 --- a/build.sh +++ b/build.sh @@ -30,7 +30,7 @@ deps_rpm() { deps_pkg() { echo "deps_pkg: begin." - deps="wget gsed gmake m4 python3 py37-sqlite3 pkgconf llvm node nasm zip unzip yasm" + deps="wget gmake m4 python3 py37-sqlite3 pkgconf llvm node nasm zip unzip yasm" pkg install $deps echo "deps_pkg: done." } @@ -166,98 +166,47 @@ do_patches() { if [ ! -d firefox-$pkgver ]; then exit 1; fi cd firefox-$pkgver - echo 'Applying patches...' - - # Apply patches.. + # context-menu.patch megabar.patch mozilla-vpn-ad.patch remove_addons.patch unity-menubar.patch - echo 'context-menu.patch:' patch -p1 -i ../context-menu.patch if [ $? -ne 0 ]; then exit 1; fi - echo 'megabar.patch:' patch -p1 -i ../megabar.patch if [ $? -ne 0 ]; then exit 1; fi - echo 'mozilla-vpn-ad.patch:' patch -p1 -i ../mozilla-vpn-ad.patch if [ $? -ne 0 ]; then exit 1; fi - echo 'remove_addons.patch:' patch -p1 -i ../remove_addons.patch if [ $? -ne 0 ]; then exit 1; fi - # create mozconfig.. + echo 'Creating mozconfig...' + create_mozconfig # just a straight copy for now.. cp -v ../mozconfig . - # on freebsd we're called gsed.. - set +e - sed=sed - gsed --version > /dev/null - if [ $? -eq 0 ]; then - sed=gsed; - # disable webrtc, build errors - cat>>../mozconfig <