diff options
Diffstat (limited to 'ublock-origin-combined/ublock-origin-combined.spec')
-rw-r--r-- | ublock-origin-combined/ublock-origin-combined.spec | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ublock-origin-combined/ublock-origin-combined.spec b/ublock-origin-combined/ublock-origin-combined.spec index 116acb3..5b8eca6 100644 --- a/ublock-origin-combined/ublock-origin-combined.spec +++ b/ublock-origin-combined/ublock-origin-combined.spec @@ -14,7 +14,8 @@ Summary: uBlock Origin installed to the system Mozilla-based extensions d Group: Applications/Internet License: GPLv3 URL: https://github.com/gorhill/uBlock -Source0: https://github.com/gorhill/uBlock-for-firefox-legacy/releases/download/firefox-legacy-%{version}/uBlock0_%{version}.firefox-legacy.xpi +Source0: README.md +Source1: https://github.com/gorhill/uBlock-for-firefox-legacy/releases/download/firefox-legacy-%{version}/uBlock0_%{version}.firefox-legacy.xpi BuildRequires: unzip BuildRequires: coreutils BuildArch: noarch @@ -43,14 +44,14 @@ EasyPrivacy, and Peter Lowe's ad/tracking/malware servers. %install # learn extension id to name the file -%{__unzip} -o %{SOURCE0} install.rdf +%{__unzip} -o %{SOURCE1} install.rdf newfilename="$( grep 'em:id' install.rdf 2>/dev/null | head -n1 | sed -r -e 's/^.*<em:id>//;' -e 's/<\/em:id>.*$//;' ).xpi" -test -z "${newfilename}" && newfilename="$( basename %{SOURCE0} )" +test -z "${newfilename}" && newfilename="$( basename %{SOURCE1} )" rm -rf install.rdf # palemoon mkdir -p %{buildroot}%{extdir1} %{buildroot}%{extdir2} %{buildroot}%{extdir3} -install -Dp -m0644 %{SOURCE0} %{buildroot}%{extdir1}/${newfilename} +install -Dp -m0644 %{SOURCE1} %{buildroot}%{extdir1}/${newfilename} ln -s %{extdir1}/${newfilename} %{buildroot}%{extdir2} # waterfox |