diff options
Diffstat (limited to 'waterfox-ublock-origin')
-rw-r--r-- | waterfox-ublock-origin/waterfox-ublock-origin.spec | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/waterfox-ublock-origin/waterfox-ublock-origin.spec b/waterfox-ublock-origin/waterfox-ublock-origin.spec index 712dcd0..6005740 100644 --- a/waterfox-ublock-origin/waterfox-ublock-origin.spec +++ b/waterfox-ublock-origin/waterfox-ublock-origin.spec @@ -12,7 +12,7 @@ Group: Applications/Internet License: GPLv3+ and LGPLv3 and MIT and OFL URL: https://github.com/gorhill/uBlock Source0: README.md -Source1: https://github.com/gorhill/uBlock-for-firefox-legacy/releases/download/firefox-legacy-%{version}/uBlock0.firefox-legacy.xpi +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 @@ -37,10 +37,10 @@ EasyPrivacy, and Peter Lowe's ad/tracking/malware servers. # learn extension id to name the file %{__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} )" mkdir -p %{buildroot}%{moz_extensions}/%{app_id} -install -Dp -m0644 %{SOURCE0} %{buildroot}%{moz_extensions}/%{app_id}/${newfilename} +install -Dp -m0644 %{SOURCE1} %{buildroot}%{moz_extensions}/%{app_id}/${newfilename} rm -rf install.rdf |