makedeb
Emulates remote frameworks and delivers them as local resource, extension for Firefox.
Viewing /update
.
Click here to go back to the Git tree for webext-localcdn-firefox.
#!/bin/sh
versionfile="$(wget -o /dev/null -O- https://addons.mozilla.org/en-US/firefox/addon/localcdn-fork-of-decentraleyes | grep -m 1 xpi | sed 's!.*/firefox/downloads/file/!!;s!\.xpi.*!!;s!/.*-!|!')"
version="$(echo "$versionfile" | cut -d '|' -f 2)"
echo "$version"
fileid="$(echo "$versionfile" | cut -d '|' -f 1)"
echo "$fileid"
wget -c "https://addons.mozilla.org/firefox/downloads/file/$fileid/localcdn_fork_of_decentraleyes-${version}.xpi"
hash="$(b2sum "localcdn_fork_of_decentraleyes-${version}.xpi" | cut -d ' ' -f 1)"
echo "$hash"
sed -i "s!pkgver=.*!pkgver=\"$version\"!;""s!_fileid=.*!_fileid=\(\'$fileid\'\)!;s!b2sums=.*!b2sums=\(\'$hash\'\)!" PKGBUILD