diff options
author | XZS | 2016-05-12 01:15:43 +0200 |
---|---|---|
committer | XZS | 2016-05-12 01:15:43 +0200 |
commit | 27acf52cef09f70dd8cb352a7d60087fe59bfb3f (patch) | |
tree | 72fdeb270eca1861d3d4cbc19a2c53fa20015e7a | |
parent | 5e1f8902c0513b0e5f299ff31fd88a5c91a11736 (diff) | |
download | aur-27acf52cef09f70dd8cb352a7d60087fe59bfb3f.tar.gz |
derive URL from extension name
In the absence of a dedicated web page, the description page for the
Add-On follows a similar naming scheme as the download link and can
be automatically composed, too. Conditionally doing so when no explicit
$url is set, eases transition should the extension be forked, switch
maintainers or otherwise change in a way that the description page on
addons.mozilla.org is more accurate than the current page.
-rw-r--r-- | PKGBUILD | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -16,6 +16,7 @@ source+=( "${pkgname}.zip::https://addons.mozilla.org/firefox/downloads/latest/${_extname=${pkgname#*-*-}}/platform:2/" ".version::https://services.addons.mozilla.org/firefox/api/1.5/addon/$_extname" ) +[ ${url++} ] || url="https://addons.mozilla.org/${pkgname%%-*}/addon/$_extname/" md5sums+=('SKIP') noextract+=("${pkgname}.zip") makedepends+=(unzip) |