Package Details: firefox-gesturefy 2.1.1-1

Git Clone URL: https://aur.archlinux.org/firefox-gesturefy.git (read-only)
Package Base: firefox-gesturefy
Description: firefix addon for customizable mouse gesture, which supports over 40 different actions
Upstream URL: https://addons.mozilla.org/firefox/addon/gesturefy/
Licenses: GPL
Submitter: eworm
Maintainer: eworm
Last Packager: eworm
Votes: 2
Popularity: 0.000010
First Submitted: 2017-11-16 22:37
Last Updated: 2019-07-05 20:22

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

cameel commented on 2017-11-18 20:56

A little update after experimenting with those URLs a bit more:

tl;dr: Please change the source URL to https://addons.cdn.mozilla.net/user-media/addons/819184/gesturefy-${pkgver}-an+fx-linux.xpi


The URLs in my previous comment are actually all redirects to the file hosted at addons.cdn.mozilla.net. The redirect location is the same regardless of the file name you specify:

https://addons.cdn.mozilla.net/user-media/addons/819184/gesturefy-1.1.14-an+fx-linux.xpi?filehash=sha256%3A23f095d21e1706d18d659a3adca80c37deca10d1b9aa3b209ee2b8eb7c91459f

This URL is much nicer than those redirects. First, addons.cdn.mozilla.net returns HTTP 404 if you use the wrong name so it's easier to notice if the version is wrong. Second, it does not have the /file/<id>/ part which changes with every version. Instead if has /addon/<id>/ which stays the same for a given addon.

The filehash= part is pretty useless and I think should be omitted. You don't even get an error if the hash is wrong here. And sha256sums in PKGBUILD takes care of validating the checksum anyway.

Finally, it turns out that non-linux versions do exist. The following two URLs both work and return different files:
https://addons.cdn.mozilla.net/user-media/addons/819184/gesturefy-1.1.14-an+fx-linux.xpi
https://addons.cdn.mozilla.net/user-media/addons/819184/gesturefy-1.1.14-an+fx-windows.xpi

cameel commented on 2017-11-18 20:25

There's a small bug in the PKGBUILD. pkgver is set to 1.1.4 but it installs version 1.1.14.

Also, maybe you already know this but I'll mention it just in case because it caught me by surprise: addons.mozilla.org only cares about the /file/<id>/ part of the URL and completely ignores the filename that follows it. So all of the following URLs download the exact same file:

https://addons.mozilla.org/firefox/downloads/file/770694/firefox-gesturefy-1.1.14-an+fx-linux.xpi
https://addons.mozilla.org/firefox/downloads/file/770694/firefox-gesturefy-1.1.4-an+fx-linux.xpi
https://addons.mozilla.org/firefox/downloads/file/770694/photoshop-3000-windows.rar

For reference, the URL for 1.1.14 on the addon page (https://addons.mozilla.org/en-US/firefox/addon/gesturefy/versions/) is:
https://addons.mozilla.org/firefox/downloads/file/770694/gesturefy-1.1.14-an+fx-linux.xpi?src=version-history

I wonder what the point of the -an+fx-linux suffix is because as far as I can tell there's no way to download a non-linux version this way (can addons even have different versions for different systems?).