diff options
author | XZS | 2016-05-12 01:14:29 +0200 |
---|---|---|
committer | XZS | 2016-05-12 01:14:29 +0200 |
commit | 05e2459ffcf485705212fac588892b00dd6cd550 (patch) | |
tree | abf339dc54512ae49b0b36599dd364f69730d905 | |
parent | 05f221b330105a7680df83cf9640cec6f00ecd29 (diff) | |
download | aur-05e2459ffcf485705212fac588892b00dd6cd550.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
@@ -17,6 +17,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) |