diff options
Diffstat (limited to 'libre/iceweasel/PKGBUILD')
-rw-r--r-- | libre/iceweasel/PKGBUILD | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/libre/iceweasel/PKGBUILD b/libre/iceweasel/PKGBUILD index a8d215351..73b742ba9 100644 --- a/libre/iceweasel/PKGBUILD +++ b/libre/iceweasel/PKGBUILD @@ -267,15 +267,23 @@ END # browser/components/search/extensions/<ID>/ # local _remove_engines_sed='s|.*oogle.*| "ddg", "duckduckgo-html", "duckduckgo-lite", "internet-archive", "parabola-labs", "parabola-packages", "parabola-wiki-en", "searx", "wikipedia", "yacy"|g' local _remove_engines_sed='s|.*oogle.*| "ddg", "wikipedia"|g' - local _search_config_file=browser/components/search/extensions/list.json echo "applying libre-searchengines.patch" patch -Np1 -i "$srcdir/libre-searchengines.patch" - sed -i "${_remove_engines_sed}" ${_search_config_file} + + pushd browser/components/search/extensions + sed -i "${_remove_engines_sed}" list.json # Sanity-check search-engines patching _removed_engines_regex='Bing|Google|Seznam|Twitter|Yahoo|Yandex|Яндекс|amazon|bing|google|ebay|twitter' _err_msg="search-engines patch needs re-working" - ! grep -E ${_removed_engines_regex} ${_search_config_file} > /dev/null || ! echo "${_err_msg}" + ! grep -E ${_removed_engines_regex} list.json > /dev/null || ! echo "${_err_msg}" + + find -mindepth 1 -maxdepth 1 \ + -not -name ddg \ + -not -name wikipedia \ + -not -name list.json \ + -exec rm -rf {} \; + popd # Removing What's New tab from Developer Tools, usages are removed by libre.patch rm -rf devtools/client/whats-new |