# build.sh - build librewolf on windows # derived from https://gitlab.com/librewolf-community/browser/linux/-/blob/master/PKGBUILD pkgname=librewolf _pkgname=LibreWolf pkgver=85.0.1 fetch() { rm -vf firefox-$pkgver.source.tar.xz wget https://archive.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.xz # the settings and common submodules should be checked out to allow the build rm -vf megabar.patch remove_addons.patch unity-menubar.patch wget https://gitlab.com/librewolf-community/browser/linux/-/raw/master/megabar.patch wget https://gitlab.com/librewolf-community/browser/linux/-/raw/master/remove_addons.patch wget https://gitlab.com/librewolf-community/browser/linux/-/raw/master/unity-menubar.patch } prepare() { echo "Deleting previous firefox-${pkgver} ..." rm -rf firefox-$pkgver echo "Extracting firefox-$pkgver.source.tar.xz ..." tar xf firefox-$pkgver.source.tar.xz cd firefox-$pkgver cat >../mozconfig <